28.06.2017, 06:20
First, make sure that you are using this updated DMX library:
https://gist.github.com/jsopenrb/f97f85f...c6766aae6a
Do not make any changes in the library, but change parameters in DMX.init (note that it must be DMX.init not DMX:init):
Since you have a lot of channels, you have to lower the resolution parameter to decrease CPU load.
For the second line, you have to add skey = 'dmx_line_2' parameter, otherwise both lines will use the same storage key thus the same channel values.
https://gist.github.com/jsopenrb/f97f85f...c6766aae6a
Do not make any changes in the library, but change parameters in DMX.init (note that it must be DMX.init not DMX:init):
Code:
dmxhandler = DMX.init({
port = '/dev/RS485-1',
channels = 3,
transition = 2,
resolution = 10,
})
Since you have a lot of channels, you have to lower the resolution parameter to decrease CPU load.
For the second line, you have to add skey = 'dmx_line_2' parameter, otherwise both lines will use the same storage key thus the same channel values.