/******************************************************************************** Includes ********************************************************************************/ #include #include /******************************************************************************** Main ********************************************************************************/ int main(void) { // configure PORTA as output DDRA = 0xFF; // configure PORTB as input DDRB = 0; // make sure PORTB is high impedance and will not source PORTB = 0; // main loop while (true) { // map PINB switches to PORTA PORTA = PINB; } }