Sequencing through sketches with a button press

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

I have edited the code to use switch.. case function.

I have added some comments which may be of help.
This will make sequence selection easier.

How have you got your button wired to the Arduino?
What model Arduino are you using?

Because you are using delay(), the only time the button pin will be read is when a sequence has finished a cycle, so you may have to hold the button down until you see a sequence change.
Tom... :slight_smile:

Traffic_Advisory_Button_Control.ino (21.2 KB)