This is an adaptation of Ben Buxton's excellent rotary library and implements additional features for encoder rotation speed.
- Debounce handling with support for high rotation speeds
- Correctly handles direction changes mid-step
- Checks for valid state changes for more robust counting and noise immunity
- Counts full-steps (default) or half-steps
- Calculates speed of rotation
If you like and use this library please consider making a small donation using PayPal