Skip to content

Instantly share code, notes, and snippets.

@ysakasin
Created November 14, 2015 15:04
Show Gist options
  • Save ysakasin/32221b2d65012075850f to your computer and use it in GitHub Desktop.
Save ysakasin/32221b2d65012075850f to your computer and use it in GitHub Desktop.
#include <avr/io.h>
#include <unit/delay.h>
int main(void){
DDRB=0b11111111;
PORTB=0b00000000;
while(1){
PORTB=0b11111111;
_delay_us(1);
PORTB=0b00000000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment