This firmware is based on TinyUSB and does not use QMK. It is hacked together and not finished. It should be simple to extend or change as required. The code presents a HID keyboard, a mass storage device (there because the code I based this on had it) and a USB serial port. The USB serial has a menu driven interface that is used to debiug the code at the moment, but could be used for configuration.
Putting macropad into mass storage mode. This can be done in the serial CLI of the firmware, or if the mode needs to be forced due to bad code, then connecting TP9 and TP13 through a 2k2 resistor works. I have wired a switch and resistor on flying leads.
I have some code that sets up modes I want. You can add whatever you need.
The top left key cycles through the modes.
Sets up LEDs and keys:
- Green: HOME and END
- Purple: PAGE UP and PAGE DOWN
- Blue: LEFT, RIGHT, UP, DOWN
- Cyan: minicom -D /dev/ttyACM0
This mode sends incrementing numbers in hex or decimal, with or without spaces
-
Blue: Hex, no space
-
Green: Hex, trailing space
-
Purple: Decimal, no space
-
Red: Decimal, trailing space
The number is auto-incremented after each keypress