HW timer-based driver for incremental rotary encoders.
The encoder is polled by a periodic esp_timer, so the pins do not have to be
interrupt capable and several encoders work at the same time. The polling
interval is a build time constant, CONFIG_RE_INTERVAL_US, which also sets the
granularity of the button timings. The events are reported from the timer task,
so the callback has to be quick and must not call back into the driver; see the
documentation of the callback type before using it.
- Documentation
- Repository
- Issues
- Discussions and questions
- Component page at the ESP Component Registry
idf.py add-dependency esp-idf-lib/encoderFor questions and discussions about the component, please use Discussions at esp-idf-lib/core.
Please read CONTRIBUTING.md at esp-idf-lib/core.