Since I'm a total beginner I soldered the Elenco practice kit SP-3B first. That was nice, progressing from easy to hard with 100 or whatever solder points. A version of that with a more modern feel might be a good product for the "maker" constellation.
Oh, and for some reason I just like to watch LEDs count:
Code: Select all
#include <avr/io.h> // this contains all the IO port definitions
#include <util/delay.h>
int main(void) {
// set port B to output only
DDRB = 0xFF;
// count up port b with 1/2 sec delay
PORTB = 0;
while (1) {
_delay_ms((double)500);
if (PORTB == 255)
PORTB = 0;
else
PORTB++;
}
}
I assume that I could have just kept incrementing PORTB and let it wrap .. that carry would end up somewhere.