1
2
3
4
5
6
7
8
9
10
11
function dmxset (channel, value)
    local f = assert(io.open("/dev/dmx_out","w"))
    f:setvbuf("full",1)
    f:seek("set",channel)
    f:write(value)
    f:close()
end

dmxset(1,255)
dmxset(2,255)
dmxset(3,255)