#include int main(void) { ddrb = ddrb & 0b11111101; ddrc = ddrc | 0b10000000; while(1) { if (pinb & (0b00000010)) portc = portc |0b10000000; else portc = portc & 0b01111111; } return 0; }