Skip to content

Instantly share code, notes, and snippets.

@avr-programmierung
Created May 14, 2019 09:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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