Menu program - to test equipment
ATmega328P.pdf ( Register summary on p 428 )When working with breadboard it is normal to constantly change the equipment. You then have the advantage of a menu program to test that all parts still work after each reconstruction. The program tests the Arduino board built-in LED, but it is easy to add new "tests" to the switch-case expression.
When the menu program receives commands (one character), it will make short operations, but the rest of the time it is running the actual program loop.

menu.txt
(for Arduino use code stored as: menu\menu.ino)
William Sandqvist william@kth.se