77Views2Replies
Arduino - Trigger only Section of sketch
Hi. My sketch is to run 3 different relays over a different periods. I am new to arduino, and what i Know up untill know I've learned from reading it up. Please help me how to use an input to trigger certain parts of the sketch(the different periods)
Thanks!
Discussions
2 years ago
thanks caitlinsdad, I'll look it up
2 years ago
Learn to use the switch case statement, essentially use your trigger value to do something based on what it is. Good luck.
https://www.arduino.cc/en/Tutorial/SwitchCase