14.11.2023, 08:39
You need to use low-level library functions. Resident script example for 2 channels:
Code:
dmx = require('luadmx').open('/dev/RS485-1')
dmx:setcount(2)
function send(val)
dmx:setchannel(1, val)
dmx:setchannel(2, 255 - val)
dmx:send()
os.sleep(0.1)
end
while true do
for val = 0, 255, 5 do
send(val)
end
for val = 250, 5, -5 do
send(val)
end
end