Skip to content

Instantly share code, notes, and snippets.

@drymek
Created November 26, 2015 18:35
Show Gist options
  • Save drymek/3439825faa8373c93c39 to your computer and use it in GitHub Desktop.
Save drymek/3439825faa8373c93c39 to your computer and use it in GitHub Desktop.
#include <avr/io.h>
#include <util/delay.h>
int main(void) {
DDRB = 0b11111111;
while (1) {
PORTB = 0b11111111;
_delay_ms(1000);
PORTB = 0b00000000;
_delay_ms(1000);
}
return (0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment