The recommended standard for resistors for analog inputs is 10K.
Having another look at an alternative option, no where near my axo to try out, but here might be an option.
- Connect Rot Enc as per normal, VCC, GND, Output A, Output B. I am ignoring the switch in this instance.
- With 3 x 10K resistors, connect all linked as follows..
GND -> 10K -> output A -> 10K -> output B -> 10K -> GPIO
With this, you will get no reading when both pins are low, when each pin is high, you should get a different reading. Not concerned when both are high, so ignore this.
The way to define the direction as follows..
You have a variable that carries a value that is reset every time both pins are low (variable = 0), if read value for A = high & B = Low, then variable = 1 (this is one direction), B = high & A = Low then variable 2 (this is the other direction).
So the goal here is to read the first state after both pins are low which is consistent in both directions to define the direction it is going in.
Well just a thought anyway...