Actions

Talk

Talk:Avr2011 Programming The Kit

From HacDC Wiki

Revision as of 23:15, 12 March 2011 by Jamestford (talk | contribs)

I find it helpful to flash the chip with a simple program to turn on all LED's just to ensure all of your LED's work before moving on just in case you put an LED in backwards.

Light Em' Up Program

#include <avr/io.h>		
void main(void){
 DDRB = 0b11111111;
 while(1){
   PORTB = 0b11111111;
 }  
}