tmk a8822a16b4 hhkb: Fix scan rate for HHKB JP #203 | 9 år sedan | |
---|---|---|
.. | ||
doc | 10 år sedan | |
not_supported | 9 år sedan | |
rn42 | 9 år sedan | |
Makefile | 9 år sedan | |
Makefile.jp | 9 år sedan | |
Makefile.pjrc | 9 år sedan | |
Makefile.rn42 | 9 år sedan | |
README.md | 9 år sedan | |
config.h | 9 år sedan | |
config_rn42.h | 9 år sedan | |
hhkb_avr.h | 9 år sedan | |
keymap_common.c | 10 år sedan | |
keymap_common.h | 10 år sedan | |
keymap_hasu.c | 9 år sedan | |
keymap_hhkb.c | 9 år sedan | |
keymap_jp.c | 10 år sedan | |
keymap_spacefn.c | 10 år sedan | |
led.c | 11 år sedan | |
matrix.c | 9 år sedan | |
rn42.mk | 9 år sedan |
I wanted to add some features like vi cursor and mouse keys to my HHKB but its controller is not programmable and firmware source code is not open, of course. This means customizing this keyboard needs to replace original controller with programmable one.
This controller can work with HHKB Professional, Professional 2, JP and Type-S.
See this thread in geekhack.org.
See README of tmk_keyboard for more.
I’m not a professional of electronics nor MCU programming. This may damage your HHKB. And my English writing is poor, I’m not sure I can convey my notions accurately.
See doc/HHKB.txt and files under doc/ for internal of HHKB and this controller.
See this document first.
If your target is HHKB JP you need to set HHKB_JP
build option in Makefile
or use Makefile.jp
instead of Makefile
.
If you use other than TMK Alt Controller Board set proper MCU
, BOOTLOADER_SIZE
and other build options in Makefile
and config.h
. At least PJRC Teensy requires changing BOOTLOADER_SIZE
to 512.
Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. Just make
with KEYMAP
option like:
$ make -f Makefile.<jp|pjrc|rn42> KEYMAP=(hasu|hhkb|spacefn|<name>)
You can omit -f
option when you use Makefile
. Makefile
is used for Pro2 and Pro, Makefile.jp
fits for JP model and Makefile.rn42
supports Bluetooth module RN-42. Makefile.pjrc
uses PJRC as output protocol instead of LUFA.
First, push reset button on board to start bootloader.
This command programs the controller with dfu-programmer if the tool is installed and configured properly.
$ make -f Makefile.<variant> KEYMAP=<name> dfu
Or you can also use FLIP command to program. Also the tool should be installed and configured properly. FLIP GUI application is also available.
$ make -f Makefile.<variant> KEYMAP=<name> flip
Use Teensy Loader if your controller is Teensy/Teensy++.
To define your own keymap create file named keymap_<name>.c
and see keymap document and existent keymap files.
You have some options for hardware. Development boards with USB AVR family(ATMega32U4, AT90USB1286) like Teensy will work while MegaAVR with V-USB library is also cheaper option for DIY.
Design files are available at Keyboard Controller Board for HHKB(KiCad project) and see Controller Distribution thread if you get an assembled one.
See this thread.