Marketing has a number of LEDs to try out. The LEDs are attached to different pins. Use the button to cycle through the possibilities.
So we have some gloabl counter that is incremented upon the button activity. Reset counter when maximum number is reached
Share this highlighthttp://www.safaribooksonline.com/a/making-embedded-systems/9139613/