Skip to content

Instantly share code, notes, and snippets.

@holachek
Created August 8, 2012 20:10
Show Gist options
  • Save holachek/3298171 to your computer and use it in GitHub Desktop.
Save holachek/3298171 to your computer and use it in GitHub Desktop.
AVR Tutorial main.c
#include <avr/io.h>
#include <util/delay.h>
int main (void)
{
DDRD |= (1 << PD6);
for(;;)
{
PORTD ^= (1 << PD6);
_delay_ms(100);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment