Difference between revisions of "Tmk keyboard firmware"
From Makers Local 256
(pin usage) |
m (some macro stuff) |
||
Line 14: | Line 14: | ||
Red (vcc) --> o | o <-- Green (gnd) | Red (vcc) --> o | o <-- Green (gnd) | ||
o o <-- Yellow (data) | o o <-- Yellow (data) | ||
+ | |||
+ | == Keymap macro == | ||
+ | #define KEYMAP( \ | ||
+ | /* these parameters indicate keyboard layout order */ | ||
+ | ) { \ | ||
+ | /* you must place C array notation of your matrix structure here */ | ||
+ | } |
Revision as of 22:54, 12 September 2015
SparkFun atmega32u4 Breakout
So, while this board uses an atmega32u4 it has a major problem. It will always boot into the bootloader and wait for the char 'e' to be sent. So instead, I just wrote the tmk firmware over the bootloader.
- Board - https://www.sparkfun.com/products/11117
- Github - https://github.com/sparkfun/32U4_Breakout_Board
- LUFA-130303 bootloader - File:BootloaderCDC.hex.gz
- avrdude -p atmega32u4 -P /dev/ttyACM0 -c usbasp -U flash:w:BootloaderCDC.hex
- Program tmk over the bootloader
- avrdude -p atmega32u4 -P /dev/ttyACM0 -c usbasp -U flash:w:ps2_usb_lufa.hex
ps/2 cable
I stole a female ps/2 port from a qcat.
o | o <-- Blue (clock) Red (vcc) --> o | o <-- Green (gnd) o o <-- Yellow (data)
Keymap macro
#define KEYMAP( \ /* these parameters indicate keyboard layout order */ ) { \ /* you must place C array notation of your matrix structure here */ }