Been fooling around with node-red for a simple application to make a pushbutton that sends tcp commands to third party gear.
I've run into a problem with the GPI. I want to send different commands on every second pulse from a momentary switch on the GPI. Its normally 1 and changes to 0 on button press. Is there a way to insert a function to send 1 on the first pulse, 0 on the next, 1 on the third and so on?
Hope you can help me
Node Red toggle function
- Posts: 2
- Joined: Tue Apr 18, 2017 8:03 pm
- Posts: 6924
- Joined: Tue Jun 19, 2012 9:46 pm
- Location: Essex, UK