// Very simple blinker
#include <avr/io.h>

// F_CPU defines the frequency of the CPU. 1e6 is 1x10^6 or 1MHz.
// It must be defined to give a value for the following include. 
#define F_CPU 1e6

#include <util/delay.h>

int main()
{
DDRA = _BV(PA2);
PORTA = _BV(PA2);

while (1)
{
PORTA = _BV(PA2);
_delay_ms(1000);
PORTA = 0;
_delay_ms(1000);
}
}
