[hw640] has put together a well written and detail packed explanation of how to interface with a digital rotary ... levels (00, 10, 11, 01). The relative position of the switch is insignificant ...