Adjusting digits in a number using a rotary encoder

Grumpy_Mike:
If it only has 5 pins then there is no switch.

Mine has five pins and **two ** of them are pushbutton contacts. The remaining three are A, B, and common for the quadrature signal.