Configure input switches connected via TRRS jack with an audio splitter, then download the config file to your board.
config.py file for use with the matching code.py on an Adafruit TRRS Trinkey.
The board.TIP pin is normally set as output-low to serve as ground. Connect your switches between TIP and the input pins.
To cycle through modes, press and hold the designated Mode Switch for the configured hold duration.
Choose the splitter you are using. This sets which pins are available as switch inputs. You can still adjust individual pins manually below.
Active switch inputs — adjust if needed:
One switch is designated to cycle through modes. Hold it down for the set duration to advance to the next mode. Its regular HID action still works on a short press.
Assign a keyboard, media, or mouse action to each active switch for each mode. The NeoPixel LED indicates the current mode.