// Blinking LED in C // Created By Faisal // 21-March-2020 #include #include #define F_CPU 20000000UL int main(void) { // put your setup code here, to run once: DDRA |= (1 << DDA3); // Define pin A3 LED as an output DDRA &= ~(1 << DDA7); // Define pin A7 Button as an input PINA &= ~(1 << PINA7); // 0 to use internal pull-up resitor to pin A7, 1 to use external PINA |= (1 << PINA3);// Define value of LED as 1 while (1) { _delay_ms(500); PINA &= ~(1 << PINA3); _delay_ms(1000); PINA |= (1 << PINA3); } }