Created
November 11, 2015 13:07
-
-
Save smcl/9027bdff2e7a5a0e20e8 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> | |
#define LED_ON _BV(PORTB5) | |
#define LED_OFF ~_BV(PORTB5); | |
int main () { | |
DDRB |= _BV(DDB5); | |
while(1) { | |
PORTB |= LED_ON; | |
_delay_ms(300); | |
PORTB &= LED_OFF; | |
_delay_ms(300); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment