This project provides an out-of-tree Zephyr module and shield definition for the HHKB Pro2 daugther board.
The hhkb_pro2
shield defines the default HHKB keymap and zmk,kscan
chosen. Any board can use the hhkb_pro2
shield by defining the
hhkb_pro2_connector
gpio nexus node. Examples can be find in
custom_pro2.overlay and
whkb_pro2.dts.
Clone this repository then add your keymap overlay to the custom_pro2
shield.
You can also create more complex customization by creating entirely new boards or
shields.
The default Github Actions will build the firmware using the build.yml definition.
Follow the steps in the official ZMK document to setup build environment.
Setup Zephyr
west init -l config
west update
To build nice_nano_v2 based board:
west build -s zmk/app -p -b nice_nano_v2 -- \
-DSHIELD="hhkb_pro2 custom_pro2" \
-DZMK_CONFIG=$PWD/config
or to build WHKB Pro2:
west build -s zmk/app -p -b whkb_pro2 -- \
-DSHIELD=hhkb_pro2 \
-DZMK_CONFIG=$PWD/config
The finished UF2 file is at build/zephyr/zmk.uf2
The default configuration in custom_pro2
is based on
the nice_nano_v2
board. It only uses the pins on the
left side. The pins' order is upside down so the wires
can be bend easily under the case.
It take advantages of the high drive capability of nRF52 GPIO to power the HHKB Pro2 daughter board.