DMX 16Bit (Enttec dmx usb pro and imp.dmx.16to8)
Dear all,
I have a Enttec dmx usb and want to use it with a light that allows 16bit color control.
So, I for example control the red amount with channel 1 and 2.
Is it correct that I then use [imp.dmx.16to8] to convert the number of the range 0...65535 to two numbers of the rang 0...255.
And then send the first to channel 1 and the second number to channel 2 -
is that how it works?
Thanks a lot,
Frank
Yup that's correct. impdmx.16to8 converts a 16-bit integer range (0-65535) to two 8-bit integers (0-255), which represent the MSB and LSB of the original value respectively. In DMX the convention is that the MSB (or coarse) control channel always comes before the LSB (fine) control channel, although very, very occasionally it can be the other way round.
Alright, thank you - very good to know!
One other question: Whenever I send a value to the [imp.dmx.16to8] it first outputs a zero at each outlet and then the current values.
Is that intended / neccessary?
thank you,
all the best
Frank
That's most likely just a bug, I will note it!
Alright, good to know and thanks for the feedback.
Meanwhile I can make the same calculation with /256 and %256 - am I correct, like posted below, right?
It basically does the same thing but is not as efficient - is that correct?
Thank you!
Frank