int main (void) { //Set the Led Pin. DDRA = (1 << PA7); //While(1) allows the program to loop while (1) { //Set the Led as "ON" PORTA = (1 << PA7); //Wait for 1 second _delay_ms(300); //Set the Led as "OFF" PORTA = (0 << PA7); //Wait for 1 second" _delay_ms(200); } return 1;//keep returning 1 so that the program will loop endlessly }