It's half USB Key, half Adafruit Trinket, half rotary encoder*...*it's Rotary Trinkey, the circuit board with a Trinket M0 heart ...
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 ...