outb(DDRC, 0xFF); //Set all Port C pins to output outb(PORTC, 0xF0); //Set first 4 pins of Port C low and next 4 pins high
outb(DDRC, 0x00); //Set all Port C pins to input outb(PORTC, 0xFF); //Set pull-up resistors on Port C
INSERT PULL-UP SCHEMATIC