diff --git a/config/ninepad.json b/config/ninepad.json new file mode 100644 index 0000000..786dc9d --- /dev/null +++ b/config/ninepad.json @@ -0,0 +1,21 @@ +{ + "layouts": { + "default_layout": { + "name": "default_layout", + "layout": [ + { "row": 0, "col": 0, "x": 0, "y": 0 }, + { "row": 0, "col": 1, "x": 1, "y": 0 }, + { "row": 0, "col": 2, "x": 2, "y": 0 }, + + { "row": 1, "col": 0, "x": 0, "y": 1 }, + { "row": 1, "col": 1, "x": 1, "y": 1 }, + { "row": 1, "col": 2, "x": 2, "y": 1 }, + + { "row": 2, "col": 0, "x": 0, "y": 2 }, + { "row": 2, "col": 1, "x": 1, "y": 2 }, + { "row": 2, "col": 2, "x": 2, "y": 2 } + ] + } + }, + "sensors": [] +} \ No newline at end of file diff --git a/config/ninepad.keymap b/config/ninepad.keymap index 41a95d8..9d6404c 100644 --- a/config/ninepad.keymap +++ b/config/ninepad.keymap @@ -1,30 +1,28 @@ #include -#include #include +#include / { - keymap { - compatible = "zmk,keymap"; - label = "ninepad"; - - default_layer { - label = "Default"; - bindings = < - &kp KP_N7 &kp KP_N8 &mo 1 - &kp KP_N4 &kp KP_N5 &kp KP_N6 - &kp KP_N1 &kp KP_N2 &kp KP_N3 - - >; - }; - - bt_layer { - label = "bt"; - bindings = < - &none &none &bootloader - &none &none &bt BT_CLR - &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 - >; - }; + keymap { + compatible = "zmk,keymap"; + label = "ninepad"; + default_layer { + label = "Default"; + bindings = < +&kp N7 &kp N8 &mo 1 +&kp NUMBER_4 &kp N5 &kp KP_N6 +&kp NUMBER_1 &kp NUMBER_2 &kp KP_N3 + >; }; + + bt_layer { + label = "bt"; + bindings = < +&none &none &bootloader +&none &none &bt BT_CLR +&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 + >; + }; + }; };