#include #include #define F_CPU20000UL #define LED_PORT PORTA #define Button PA0 int main (void){ DDRA = 0b10000000;//t Pin PA0 of PORT A as input (button) and set pin 1 of PORT A as output (LED) while (1){ if(Button==1){ LED_PORT = 0b01000000; //set PA1 high } else{ LED_PORT = 0b00000000; //set PA1 low } } }