#include #include #include void port_init(void) { DDRD = 0x00 ; // entrée des switch DDRC = 0xFF ; // sortie (moteur) PORTC = 0x00 ; DDRA = 0xFF ; // touche enable PORTA = 0x00 ; } void DelayC(void) { unsigned char a ; int i ; for (i=0;i<5;i++) // délai court for (a = 1; a; a++); } char testbit(char reg, char n) { char m=1<