- DDRB &= ~(_BV(DDB1)); // set as input
- PORTB |= _BV(PORTB1); // enable internal pull-up
- PORTB &= ~_BV(PORTB0); // set to zero
+ DDRB &= ~(_BV(DDB0)); // set as input
+ PORTB |= _BV(PORTB0); // enable internal pull-up
+ PORTB &= ~_BV(PORTB1); // set to zero