Changed how internal pullup resistors are set for rotary encoder