diff options
Diffstat (limited to 'boards')
-rw-r--r-- | boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay | 35 | ||||
-rw-r--r-- | boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | 32 |
2 files changed, 35 insertions, 32 deletions
diff --git a/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay b/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay new file mode 100644 index 0000000..9e7d3d8 --- /dev/null +++ b/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay @@ -0,0 +1,35 @@ +#include <dt-bindings/zmk/keys.h> + +/ { + chosen { + zmk,keymap = &keymap0; + }; + keymap0: keymap { + compatible = "zmk,keymap"; + label ="Default keymap"; + layers = <&default &lower &raise>; + }; + + layers { + compatible = "zmk,layers"; + + default: layer_0 { + label = "Default"; + keys = + < + KC_A KC_B + KC_C ZC_CSTM(1) + >; + }; + + lower: layer_1 { + label = "Lower"; + keys = <KC_D KC_C KC_B KC_A>; + }; + + raise: layer_2 { + label = "Raise"; + keys = <KC_C KC_D KC_A KC_B>; + }; + }; +}; diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay index fd55b28..72e24a0 100644 --- a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay +++ b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay @@ -1,41 +1,9 @@ -#include <dt-bindings/zmk/keys.h> / { chosen { - zmk,keymap = &keymap0; zmk,kscan = &kscan0; }; - layers { - compatible = "zmk,layers"; - - default: layer_0 { - label = "Default"; - keys = - < - KC_A KC_B - KC_C ZC_CSTM(1) - >; - }; - - lower: layer_1 { - label = "Lower"; - keys = <KC_D KC_C KC_B KC_A>; - }; - - raise: layer_2 { - label = "Raise"; - keys = <KC_C KC_D KC_A KC_B>; - }; - }; - - keymap0: keymap { - compatible = "zmk,keymap"; - - label ="Default keymap"; - layers = <&default &lower &raise>; - }; - kscan0: kscan { compatible = "gpio-kscan"; label = "KSCAN"; |