/* * tutoriel.c * * Created: 29/01/2021 09:13:18 * Author : yboujon1 */ #include // necessaire pour l'acces au reg IO unsigned char carry,temp; int main(void) { DDRB = 0xFF; //sortie DDRA = 0x00; //entree while (1) { if(PINA==0xF7) { carry=1; }; if(carry==1 && PINA!=0xF7) { PORTB=~PORTB; carry=0; }; }; }