PeterH:
Webca:
I want the sketch to stop and wait for a button press.The simplest way to do that is to put a loop in setup() that reads the switch state repeatedly until the button press is detected.
But that would work and it's -much- too simple.