I am using a 4 way rotary swich, break before make. Each output is connected to a separate digital input on the arduino
All 4 positions will bring a separate input LOW
I am trying to achieve the following and wondering if there is a way without creating many variabbles and constant;y resetting them depending on each switch position.
Positions are Program - Stop - Run - Pause
i need to be able to control the following 2 functions:
1) Whilst in the Run section of the program, the program pauses waiting for a user confirmation. This confirmation will be Switch goes FROM Run TO Pause and then Back to Run. The program will then continue.
2) From the Run position, IF the switch is turned to Stop and they try to Run it again, I will not allow the program to Run, Instead they will have to go from Run to Stop THEN to Program before trying to Run the program again.