![]() |
Short - Long press - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Short - Long press (/showthread.php?tid=4575) |
Short - Long press - Joep - 09.02.2023 Here's a simple script that calculate the time difference between 1 (true) and 0 (false) of a 1 bit object. I have extended it with some examples on how to use it to calculate the ON time of an object and as a working hour timer. Code: long = 10 --set long press in seconds |