SolarOS 4.6.8 manual · job
gpio-keys
Maps runtime-safe GPIO inputs to SolarOS keyboard presses. The job configures each pin as an input with its internal pull-up enabled, treats a low level as pressed, and applies the same 25 ms debounce used by fixed board buttons. Each debounced transition publishes a generic SolarOS key press or release. Held keys use the system repeat rate configured by setterm keyrate.
Inline usage:
job start gpio-keys gpio17:UP gpio2:ENTER gpio3:ESCAPE
job stop gpio-keys
job status gpio-keys
Configuration-file usage:
job start gpio-keys --config /flash/gpio-keys.conf
The file contains one mapping per line. A colon or whitespace can separate the pin and key. Empty lines and text after # are ignored: