You will need a multimeter to trace the hall sensors of the switches to the connector of the keyboard. The switches will have 4 pins. The outer pins are +5V and GND, the inner pins are used to drive the matrix.
To differentiate between +5V and GND, have a look at the switches underneath the shift and control keys: two of the pins on these switches should be directly connected.
The outer of these two pins is the GND pin. The pin next to GND is the input pin for the switch, and for the switches where it is not connected directly to GND, we will drive the pin low to activate the corrosponding switch.
The pin on the opposite site of GND is the +5V. The inner pin next to +5V is the output pin of the switch, and we will read it to determine if the key ispressed or not.
- Use the multimeter to determine which connections on the edge connector are connected to
- GND and +5V.
- the output pins of control and shift.
- the input and output pins of the other switches. You should have 7 input connections and 8 output connections on the edge connector.
- Connect GND and +5V to the corrosponding pins on the teensy.
- Connect the input pins of the switches to pins D0 up to D6.
(You might not want the LED to light up all the time. In that case use D7 instead of D6 and change the array 'outputPins' in the software accordingly ) - Connect the output pins of the switches to pins B0 to B7.
- Connect the output pin of shift to pin F0 and the output pin of control to pin F1.
Spoiler:
Spoiler:
I have posted the software as a gist for now, because I'm to lazy to create a github account

https://gist.github.com/anonymous/c4d13 ... 8b2c66db1d
This is an Arduino sketch and I use it with a Teensy 2.0.
- install teensyduino
https://www.pjrc.com/teensy/td_download.html - you will also need the teensy loader to be running in the background
https://www.pjrc.com/teensy/loader.html - in the Arduino Tools menu ...
- make sure you have the correct board type (Teensy 2.0)
- make sure you have selected a USB Type which contains "Keyboard"
A list of the possible keycodes can be found here:
https://www.pjrc.com/teensy/td_keyboard.html.
I have added an additional keycode for the key next to the left shift key on ISO keyboards: KEY_ISO_BACKSLASH
If you do not want the keyboard to emit keypresses during matrix setup remove the two slashes in front of this line:
Code: Select all
//#define SUPPRESS_KEY_EVENTS