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)


Rookie89 (author) 1 year ago

thanks caitlinsdad, I'll look it up

Learn to use the switch case statement, essentially use your trigger value to do something based on what it is. Good luck.