15.02.2021, 08:25
luadmx functions:
Code:
dmx = require('luadmx').open(port) -- open port and create DMX instance
dmx:send() -- send current channel values to DMX
dmx:setchannel(channel, value) -- set channel (1..512) to the given value (0..255)
value = dmx:getchannel(channel) -- get channel (1..512) value
dmx:setcount(count) -- set number of channels to send (1..512)
count = dmx:getcount() -- get number of channels to send
dmx:setall(value) -- set all channels to the given value (0..255)