// LED Button Blink Program #include #define F_CPU 2e6 #include #define TRUE 1 #define FALSE 0 int main() { //SETUP //Button is on PA3 //LED is PA7 DDRA = _BV(PA7); //Enable output on the LED pin PORTA = _BV(PA7); //Turns LED on //LOOP int npush; npush = 1; while (TRUE) { if ((PINA & _BV(PA3))) //button is not pushed { PORTA = 0; //turn LED off } else { int x = 0; for (x=0; x52) { npush = 1; } PORTA = 0; npush = npush + 1; } } }