2020-05-06 06:09:05 +10:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-05-02 04:58:00 +10:00
|
|
|
|
|
|
|
/ {
|
2020-05-04 05:49:33 +10:00
|
|
|
chosen {
|
|
|
|
zmk,keymap = &keymap0;
|
|
|
|
};
|
|
|
|
|
|
|
|
layers {
|
|
|
|
compatible = "zmk,layers";
|
|
|
|
|
|
|
|
default: layer_0 {
|
|
|
|
label = "Default";
|
2020-05-06 06:09:05 +10:00
|
|
|
keys = <KC_A KC_B KC_C KC_D>;
|
2020-05-04 05:49:33 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
lower: layer_1 {
|
2020-05-06 06:09:05 +10:00
|
|
|
label = "Lower";
|
|
|
|
keys = <KC_D KC_C KC_B KC_A>;
|
2020-05-04 05:49:33 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
raise: layer_2 {
|
2020-05-06 06:09:05 +10:00
|
|
|
label = "Raise";
|
|
|
|
keys = <KC_C KC_D KC_A KC_B>;
|
2020-05-04 05:49:33 +10:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keymap0: keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
label ="Default keymap";
|
|
|
|
layers = <&default &lower &raise>;
|
|
|
|
};
|
|
|
|
|
2020-05-02 04:58:00 +10:00
|
|
|
kscan {
|
|
|
|
compatible = "gpio-kscan";
|
|
|
|
label = "Handwired GPIO KSCAN matrix";
|
|
|
|
|
2020-05-06 06:09:05 +10:00
|
|
|
diode-direction = "row2col";
|
2020-05-02 04:58:00 +10:00
|
|
|
row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
|
|
|
<&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
|
|
col-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
|
|
|
<&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
|
|
};
|
|
|
|
};
|