Logic Machine Forum
short-term impulse - 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-term impulse (/showthread.php?tid=2196)



short-term impulse - Igor68 - 12.08.2019

Hi, help me please get a short-term impulse programmatically at.
 How can I make the address return to zero after a unit is submitted in 0.5 seconds? I need this for infrared control TV after conversion RS 485- IR.


RE: short-term impulse - Daniel - 12.08.2019

This should do
Code:
value = event.getvalue()
if value then
    os.sleep(0.5)
  grp.write(event.dst, false)
end



RE: short-term impulse - Igor68 - 12.08.2019

Thank! It works