O'Reilly logo
  • Alexander Jaworowski thinks this is interesting:

Marketing has a number of LEDs to try out. The LEDs are attached to different pins. Use the button to cycle through the possibilities.

From

Cover of Making Embedded Systems

Note

So we have some gloabl counter that is incremented upon the button activity. Reset counter when maximum number is reached