This is a footswitch using TMK's keyboard firmware for a Teensy 2. As it's seen by the OS as a keyboard it should work on any computer that supports USB keyboards.
- 1 Normally open footswitch. I used an M-GEAR sustain pedal for a keyboard.
- 1 Teensy 2
- 1 Mini-USB cable long enough to run back to your computer.
- Disassemble your footswitch
- Disconnect the original cable.
- Remove any unnecessary switches and circuitry.
- Connect the switch to B0 and B1 of your Teensy.
- Fix your Teensy to the inside of your pedal.
- Run your USB cable from the Teensy out of the pedal housing.
- Clone the TMK keyboard firmware from https://github.com/tmk/tmk_keyboard.git
cdinto the checked out directory.- Add this repo as a submodule with
git submodule add https://github.com/jonhiggs/fs01.git keyboards/fs01.git makethe code.- Use the 'Teensy App' to program the hex file to your Teensy.
- Enjoy your new footswitch.
By default the switch sends L_GUI which on OS X is the Command key. You can
change the key that is sent in keymap_plain.c.