Go Down

Topic: Run and repeat function until press next pushbutton (Read 4734 times) previous topic - next topic


Hint: the proper way to solve this is to have programN() functions coded as state machines, have a global currProgram variable that remembers which program is currently running and having loop() call one of the programN() function based on currProgram value.
The other piece of loop() code should detect when one of the buttons changes state, from not pressed to pressed; it then should set currProgram to the number of button just pressed.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131