In this tutorial, Rotary encoder is interfaced with ESP32S3 pulse counter peripheral that allows obtaining the position and rotation direction of the rotary encoder using 2 pins.
The obtained rotary encoder position value is shown on GC9A01 rounded display using LVGL library.
The working principle of rotary encoder and involved hardware is explained in details with the used code.
GitHub Repository:
https://github.com/UsefulElectronics/esp32s3-gc9a01-lvgl