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.

Dali switch
#2
Resident script with 0 sleep time. You can check the frame table fields to have different reaction on different button presses.
Code:
if not canxdali then
function callback(frame)
   log(frame)
end

canxdali = require('applibs.canxdali')
canxdali.sethandler('busdata', callback)
end

canxdali.step()
Make sure that you have both latest CANx and CANx-DALI apps with DALI2 message parsing support.
Reply


Messages In This Thread
Dali switch - by Nikita - 04.02.2023, 23:40
RE: Dali switch - by admin - 06.02.2023, 06:19
RE: Dali switch - by Nikita - 06.02.2023, 21:46
RE: Dali switch - by admin - 07.02.2023, 07:57
RE: Dali switch - by Nikita - 07.02.2023, 08:58
RE: Dali switch - by admin - 07.02.2023, 08:59
RE: Dali switch - by Nikita - 07.02.2023, 09:32
RE: Dali switch - by LKBA - 25.05.2023, 19:05
RE: Dali switch - by admin - 26.05.2023, 07:09

Forum Jump: