I need a little help programming Arduino UNO, it seems like it should be simple and probably is for anyone using C or C++.
The hardware would be 1 momentary switch, 1 red LED and 1 blue LED.
Both LED would be controlled by PWM’s
The switch would go zero to one to zero (ground to +5 volts) momentary with a duration of 500ms to 1 second.
- The sketch would begin, turning ON the blue LED,
- When the switch is actuated, the blue LED would turn OFF and the red LED would turn ON
- When the switch is actuated again, red LED OFF and blue LED ON.
I need help with the switch software, hints or anything else.
Thank You Richard