For suggestions and comments, contact me at thedalles77@gmail.com.
- Load the "Matrix_Decoder_LC, _3p2, or 4p0" Arduino code into your Teensy.
- Load the Keyboard_with_number_pad or Keyboard_without_number_pad text file into an editor like Notepad++.
- Put the cursor to the right of the first key in the list.
- Edit the text file if it's missing any of your keyboards keys. The key codes must be from https://www.pjrc.com/teensy/td_keyboard.html
- Connect your keyboard FPC cable to the FPC connector.
- Hook up the USB cable from your computer to the Teensy.
- Wait about 20 seconds, then push each key listed in the text file. You should see pin number pairs as you push a key.
- If a listed key is not on your keyboard, use your computer mouse or arrow keys to jump down to the next line.
- if you want to assign Media keys (a key event associated with the FN-key), push the media key (do not push the FN key). Add "FN" between the media keyname and the pins. Make sure that there is whitespace between the values.
- Save the finished key list text file.
- Make sure the key list text file is in the same folder as the matrixgenerator.py program, then execute the Python 3 program.
- The program will create a text file that gives the following:
- The FPC connector pins that are inputs (columns) and the pins that are outputs (rows) in the key matrix.
- The pins are translated to Teensy I/O numbers so you can add them to your USB keyboard code.
- Copy these 3 arrays to your USB keyboard code. The detailed instructions for modifying the USB keyboard code can be found here.