Quote Originally Posted by earltyso View Post
Simple question...

I was thinking of adding + 1 to a variable with a initial condition of zero... each time the button is pushed then divide it down to an even or odd number. If odd the relay stays high, if even the relay if off.


Could I use toggle to do this more simply?


Hi, Martian

You also have, using a single BIT :

IF Condition_true then relay_state = relay_state ^ 1

...

Alain