I have a project that uses the same hardware for 3 different learning game setups that i need to be able to select with a 3 push buttons. i need a basic concept on how to program it to select one of three loops to run until it is told to stop. and need to know how to add a run-stop toggle switch to the program to make the loop stop at a give point in the loop before continuing onto the next loop.
thanks scott
i need a basic concept on how to program it to select one of three loops to run until it is told to stop.
No problem. You can only have one loop(). You don't need any switches to select which loop() to run.
Design your sketch using a non-blocking approach. This makes it easy to handle multiple things independently, such as playing a game and monitoring switch inputs. Robin2 posted a very good example here which shows how you can do this:
http://forum.arduino.cc/index.php?topic=223286.0