← Back

ofxDmx4All

github.com/ImanolGo/ofxDmx4All · @ImanolGo
OF 0.9 Hardware Interface

Dmx4All wrapper for openFrameworks

3 0 Last commit 9y ago Created 9y ago

README

ofxDmx4All wraps DMX over serial control for openFrameworks



ofxDmx4All is based on ofxDmx from Marek Bereza based on DmxPro from Erik Sjodin. ofxDmx4All has been adapted by Imanol Gómez.

ofxDmx is targeted at the Dmx4All running the virtual serial port drivers available from FTDI.

About Channel Numbering



DMX is an unusual specification in that channels begin at 1. There is no 0 channel. This means that if you have 24 channels, they will be numbered 1, 2, 3... 24. They will not be numbered 0,1,2... 23. Because of this, you have to more careful when you write for loops. This is correct:

int total = 16; dmx.connect("tty.usbserial-ENS8KBA6", total); for(int channel = 1; channel <= total; channel++) { dmx.setLevel(channel, ...); }

Notice that the for loop starts at 1, and the stopping condition is channel <= total rather than the usual < operator.

NanoDMX USB Interface



The software was tested under MacOS Sierra using NanoDMX.



Running the Example Projects



Project files for the examples are not included so you will need to generate the project files for your operating system and development environment using the OF ProjectGenerator which is included with the OpenFrameworks distribution.

To (re)generate project files for an existing project:

click the "Import" button in the ProjectGenerator navigate the to base folder for the project ie. "example" If everything went Ok, you should now be able to open the generated project and build/run the example.

Get this addon

HTTPS
SSH