Skip to content

Instantly share code, notes, and snippets.

@aldantas
Created November 1, 2016 17:42
Show Gist options
  • Save aldantas/df6d36aaf39bbecfc10979d95afde841 to your computer and use it in GitHub Desktop.
Save aldantas/df6d36aaf39bbecfc10979d95afde841 to your computer and use it in GitHub Desktop.
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
int led = 1;
DDRB |= 1<<led;
while(1) {
PORTB |= 1<<led;
_delay_ms(1000);
PORTB &= ~(1<<led);
_delay_ms(1000);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment