Created
February 16, 2015 21:30
-
-
Save zerowidth/a7ead61e97d01753024f to your computer and use it in GitHub Desktop.
minimal blink in avr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <util/delay.h> | |
int main(void) | |
{ | |
DDRA |= _BV(DDA0); | |
while(1) | |
{ | |
PORTA ^= _BV(PORTA0); | |
_delay_ms(500); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment