Hi i was doing the menu based programme and on second menu i have used potentiometer reading on do while loop to move servo accordingly. i have added switch for interrupt while reading the potentiometer reading, if i press switch it needs to break there and come back to main menu. whenever i press the switch my programme doesn't respond and stuck.
all i need is get back to main menu while i am in DO WHILE LOOP when switch is pressed.
Any help would be appreciated.
Thanks
If you post your code as described in How to get the best out of this forum, more forum members will read it and likely offer alternative solutions.
Post your schematic in CAD or a picture of a hand drawn circuit in jpg or png. PLEASE- not a pretty Fritzing picture.
if (digitalRead(secretPin)==LOW) break;
read here: C++ Break and Continue
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.