Pushbutton rotary encoder with only one pin?

AFAIK you will need at least 2 pins if you don't care about the direction the knob is being turned and three pins if you do.

Can you use a shift register to free up some pins elsewhere?


Rob