#include <avr/io.h>
#include <util/delay.h>

// Define the I/O port to be used for the LED.
#define LED_PORT PA2
 
int main(void) {
 
    // Set the LED port number as output.
    DDRA |= (1 << LED_PORT);
	
    while (1) {
 
        // Set the LED bit to "1" - LED will be "on".
        PORTA |= (1 << LED_PORT);
 
        _delay_ms(100);
 
        // Set the LED bit to "0" - LED will be "off".
        PORTA &= ~(1 << LED_PORT);
 
        _delay_ms(100);
    }
 
    return (0);
}