Pull up 50%

For analog input we are using resistor divider for bias, can be that replaced by command which will pull up to 50% of 5V or 3.3V ? I was trying but I have an error.

The code

pinMode(encoderAPin , INPUT_PULLUP); 
pinMode(encoderBpin , INPUT_PULLUP_HALF);

Error 'INPUT_PULLUP_HALF' was not declared in this scope

I like the idea, but it is not supported. You try to use an external pull up

DON'T CROSS POST!!!!!!!!!!!!!!!!!!!! http://forum.arduino.cc/index.php?topic=527465 I HAVE REPORTED THIS THREAD TO THE MODERATORS

Thread locked.