The menu action handler functions, showProx(), showLux(), and setThresh(), each have an event loop similar to the main event loop. But, for the handler functions, rotary encoder input is used to stop ...
It's half USB Key, half Adafruit Trinket, half rotary encoder*...*it's Rotary Trinkey, the circuit board with a Trinket M0 heart ...
Adafruit has made an I2C interface for four rotary encoders. It comes in the form of a PCB with four footprints that accept one ...