diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-08-06 10:32:06 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-08-06 10:32:06 -0400 |
commit | f83ec5ce2b04380158299c20c603c1fbb49b12d6 (patch) | |
tree | 61694b8adf3635bdd083f781eb30dc9b25da798a /app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | |
parent | 9233ab60cda263b5286ffc9edef8c8cd40cc5c0e (diff) |
Refactor to using .keymap files
* Still just devicetree keymaps.
* Filename can now use `<board>.keymap` or
`<shield>.keymap` convention, including
overrides for revisions, etc.
Diffstat (limited to 'app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay')
-rw-r--r-- | app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay deleted file mode 100644 index 95b0835..0000000 --- a/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay +++ /dev/null @@ -1,44 +0,0 @@ - -/ { - chosen { - zmk,kscan = &kscan0; - }; - - kscan0: kscan_0 { - compatible = "zmk,kscan-composite"; - label = "KSCAN_COMP"; - rows = <2>; - columns = <4>; - - left { - kscan = <&left_hand>; - }; - - right { - kscan = <&right_hand>; - column-offset = <2>; - }; - }; - - left_hand: kscan_1 { - compatible = "zmk,kscan-gpio-matrix"; - label = "KSCAN_LEFT"; - - diode-direction = "row2col"; - row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, - <&arduino_header 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - col-gpios = <&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, - <&arduino_header 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - }; - - right_hand: kscan_2 { - compatible = "zmk,kscan-gpio-matrix"; - label = "KSCAN_RIGHT"; - - diode-direction = "row2col"; - row-gpios = <&arduino_header 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, - <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - col-gpios = <&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, - <&arduino_header 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - }; -}; |