Created
May 14, 2019 09:57
-
-
Save avr-programmierung/95ae70a217dc024336388c568deb9a53 to your computer and use it in GitHub Desktop.
ATmega88 @ 8MHz 14
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
/* code014.c ATmega88 @ 8MHz */ | |
#include <avr/io.h> | |
uint8_t counter; | |
int main(void) | |
{ | |
DDRD = 0xFF; | |
PORTD = 0x00; | |
counter = 100; | |
while (counter >= 0) | |
{ | |
// mach irgend etwas | |
counter --; | |
} | |
PORTD = 0xFF; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment