Created
August 24, 2016 05:30
-
-
Save prasant1010/a4fe1cfacfd9393a26b23d67f5609e59 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
#ifndef F_CPU | |
#define F_CPU 1000000UL | |
#endif | |
#include <avr/io.h> | |
#include <util/delay.h> | |
int main(void) | |
{ | |
DDRA=0b00000001; | |
while(1) | |
{ | |
PORTA=0b00000001; | |
_delay_ms(1000); | |
PORTA=0b00000000; | |
_delay_ms(1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment