This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

luadmx library
#1
Hi,

Where can I find details or documentation about luadmx library please? Only thing I found are scripts which uses DMX.set() function. I would like to do script for dimming (different from that one and only available on internet).

Thank you
Reply
#2
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)
Reply
#3
(15.02.2021, 08:25)admin Wrote: 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)

Hi! does this mean I can change my old "DMX" user library for this internal?
Reply
#4
There's no point unless you have some custom DMX control you want to use which cannot be created with the DMX library. The library uses luadmx internally anyway.
Reply


Forum Jump: