Im hoping for some help here. Im trying to learn but I haven't written code since I learned Basic in 1992.
I an creating a simple lighting display for a regional Burning Man Event. I have an Arduino Uno R3 and an 8 channel relay board. I have written a simple program to flash led lights connected to each of the 8 relay channels, that seemed simple.
What I'm struggling with is integrating a 4 position rotary switch to select from 4 different flashing programs. In basic it would have been 4 loops and if then statements.
Switch select 1 (Relays always closed, lights on) Switch Select 2 (Slow Flashing) Switch Select 3 (Fast Flashing) Switch Select 4 (Obnoxious strobe)
I can write the patterns to control the relays, I'm struggling with the code to select the loop or program segment.