Skip to content

Instantly share code, notes, and snippets.

@jasperla
Created December 28, 2011 14:52
Show Gist options
  • Save jasperla/1528205 to your computer and use it in GitHub Desktop.
Save jasperla/1528205 to your computer and use it in GitHub Desktop.
/*
delay_ms() test, compile with:
avr-gcc -mmcu=atmega328p -Wall -DF_CPU=1000000UL -Os -o main.out main.c
*/
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include <avr/interrupt.h>
int
main(void)
{
while(1) {
_delay_ms(50);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment