#include int main(void) { unsigned char temp; DDRC = 0; DDRB = 0xFF; DDRD = 0xFF; while(1) { temp = PINC; //read from PINC if (temp < 100) PORTB = temp; else PORTD = temp; } return 0; }