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.

CANx dimming
#2
You can convert 1 bit start/stop to 4 bit up/down/stop via a simple script.

Press (true) = Up, Release (false) = Stop
Code:
value = event.getvalue() and 9 or 0
grp.write('32/1/1', value, dt.bit4)

Press (true) = Down, Release (false) = Stop
Code:
value = event.getvalue() and 1 or 0
grp.write('32/1/2', value, dt.bit4)
Reply


Messages In This Thread
CANx dimming - by AnLi_HOUSE - 06.03.2022, 18:51
RE: CANx dimming - by admin - 07.03.2022, 08:50

Forum Jump: