#include #include int main() { DDRB = 0xFF; //initialisation de tous les pins PORTB en sortie (<=> DDRB = 0b1111'1111) DDRB |= (1< PB = 0b0000'0001)] PORTB &= ~(1< PB = 0b0000'0010)] DDRB &= ~(1 << PB2); // mise en entrée de PB2 [~(1< 0b1111'1011)] while (1) { if (PINB & (1<