Created
March 7, 2014 01:39
-
-
Save joegle/9403423 to your computer and use it in GitHub Desktop.
This file contains hidden or 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) | |
{ | |
/* set PORTB for output*/ | |
DDRB = 0xFF; | |
while (1) | |
{ | |
/* set PORTB.6 high */ | |
PORTB = 0x20; | |
_delay_ms(1000); | |
/* set PORTB.6 low */ | |
PORTB = 0x00; | |
_delay_ms(100); | |
} | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment