Skip to content

Instantly share code, notes, and snippets.

@avr-programmierung
Created May 14, 2019 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avr-programmierung/95ae70a217dc024336388c568deb9a53 to your computer and use it in GitHub Desktop.
Save avr-programmierung/95ae70a217dc024336388c568deb9a53 to your computer and use it in GitHub Desktop.
ATmega88 @ 8MHz 14
/* 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