Created
November 1, 2016 17:42
-
-
Save aldantas/df6d36aaf39bbecfc10979d95afde841 to your computer and use it in GitHub Desktop.
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) | |
{ | |
int led = 1; | |
DDRB |= 1<<led; | |
while(1) { | |
PORTB |= 1<<led; | |
_delay_ms(1000); | |
PORTB &= ~(1<<led); | |
_delay_ms(1000); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment