#include int main(void) { DDRB = DDRB & 0b11111101; DDRC = DDRC | 0b10000000; while(1) { if (PINB & (0b00000010)) PORTC = PORTC |0b10000000; else PORTC = PORTC & 0b01111111; } return 0; }