Created
January 6, 2019 22:17
-
-
Save detik19/813654c43f51ff8cfcd70da9b4a946c2 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 F_CPU 12000000UL | |
int main(void) | |
{ | |
DDRD=0xFF; | |
while(1) | |
{ | |
PORTD=0xFF; | |
_delay_ms(2000); | |
PORTD=0x00; | |
_delay_ms(2000); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment