AVR Lesson: Output Pins I: Difference between revisions
From HacDC Wiki
(New page: == Goals == In this lesson, you'll program the micro-controller version of "hello world", letting you fire up your programmer, compiler, chip, LED, and test them all out. You'll learn h...) |
(No difference)
|
Revision as of 22:25, 28 May 2008
Goals
In this lesson, you'll program the micro-controller version of "hello world", letting you fire up your programmer, compiler, chip, LED, and test them all out. You'll learn how to setup and use pins for output, and along the way get some exposure to AVR-specific coding practice.
The Circuit
The Code
Trouble?
Programmer woes:
Is the LED in the correct polarity? (Positive to pin PB4, negative to GND).
