This C library reads rotation data and switch presses from rotary encoders. It supports mechanical encoders like KY-040 (HW-040), or EC11. It uses GPIO_IRQ interrupts for automatic event detection - ...
You've probably seen other similar tools for other MCUs and SBCs, such as the ESP32 Marauder, ESP8266 Deauther, P4wnP1 A.L.O.A, PocketPhishr, Pwnagotchi, etc. Although these are all very good projects ...