Refactor to using .keymap files

* Still just devicetree keymaps.
* Filename can now use `<board>.keymap` or
  `<shield>.keymap` convention, including
  overrides for revisions, etc.
This commit is contained in:
Pete Johanson
2020-08-06 10:32:06 -04:00
parent 9233ab60cd
commit f83ec5ce2b
16 changed files with 25 additions and 212 deletions

View File

@@ -0,0 +1,31 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/matrix-transform.h>
#include <behaviors.dtsi>
/ {
chosen {
zmk,keymap = &keymap0;
};
keymap0: keymap {
compatible = "zmk,keymap";
label ="Default Kyria Keymap";
layers = <&default>;
};
layers {
compatible = "zmk,layers";
default: layer_0 {
label = "DEFAULT";
bindings = <
&kp NUM_9 &kp NUM_8
&kp NUM_7 &kp NUM_6
&kp NUM_5
&kp NUM_4 &kp NUM_3
&kp NUM_2 &kp NUM_1
&kp NUM_0
>;
};
};
};