Last active
February 4, 2016 11:39
-
-
Save SaheblalBagwan/4b8bd1164eb150a93311 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() | |
{ | |
char count = 0; | |
DDRC = 0xff; // Configure PORTC as output | |
while(1) | |
{ | |
PORTC = count++; // Display Counter value on LEDs | |
_delay_ms(200); // Wait for some time | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment