Figure 1—These are the conditions of the two switches in a quadrature rotary encoder. The dashed lines represent detents, but the detent setup will vary among different types of devices.