Skip to content

Instantly share code, notes, and snippets.

View bradfordbarr's full-sized avatar

Bradford Barr bradfordbarr

View GitHub Profile
@bradfordbarr
bradfordbarr / test.c
Last active August 29, 2015 13:56
AVR Hello World
/* Borrowed from: http://wiki.hacdc.org/index.php/AVR_Lesson:_Output_Pins_I */
/* Blinker Demo */
#include <avr/io.h> /* Defines pins, ports, etc */
#define F_CPU 8000000UL /* Sets up the chip speed for delay.h */
#include <util/delay.h> /* Functions to waste time */
#define LED PB1 /* Defines pin PB4 for the LED. I
often incorporate a bunch of the circuit
info in the defines, which makes