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