High-efficiency, state-machine based quadrature decoder. Counts quadrature pulses from rotary and linear position encoders, and supports generation of events for full-step or half-step modes. State-machine design results in built-in resistance to bouncing. MIT License.