I'm still trying to wrap my head around how the arduino is programmed compared to a Basic Stamp (pBasic).
In pBasic every program must have an END command to stop the program. I've noticed that in C++ (or at least arduino programming) the main program is basically a LOOP command that will repeat endlessly until power is removed from the arduino or the reset button is pressed.
My question is, can the arduino be programmed to end or will I have to encompass the entire program within a WHILE loop? If not, what would be a better way to program it to do so?
I have a flowchart made for a program where a decision is made. Each decision leads to a sequence of events that differ from each other but ultimately end. When I say it ends, I mean that the program cannot be run again until the arduino is powered down and back up again.