/* * Key_Matrix.c * * Created: 16.05.2012 18:44:37 * Author: Röwschan, Raphael, Christoph */ #include int main(void) { DDRA = 0xff; // Set PINA0 - PINA7 as OUTPUT; PORTA = 0xff; while(1){ DDRB = 0b00001111; // Set PINB4 - PINB7 as INPUT ; PORTB =0b00001110; // Set PINB0 as LOW and PIN1 - PIN3 as HIGH; if(!(PINB & (1<