Well the first two examples are easy to understand. The first turn on all the leds of PortB of your development board and you can check if all leds are ok and if all pins of PortB are ok.
The second program can check the same time a led and a switch of your board.
If you press the button one time the led will turn on , if you press second time the button the led will turn off. You can download the programs and their sourche to the Downloads.
If you find any improvement to these programs then this page is waiting you!
Tsamantero , [email protected] , AVR - 8 bit