Fixed flipped pullup bit. Also forced pullup bit low for INPUT.