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.

DMX Speed
#6
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
Reply


Messages In This Thread
DMX Speed - by DGrandes - 04.02.2022, 10:11
RE: DMX Speed - by admin - 04.02.2022, 10:14
RE: DMX Speed - by Punchito - 13.11.2023, 14:00
RE: DMX Speed - by Daniel - 13.11.2023, 15:48
RE: DMX Speed - by Punchito - 14.11.2023, 07:04
RE: DMX Speed - by admin - 14.11.2023, 08:39

Forum Jump: