diff options
| author | Pete Johanson <peter@peterjohanson.com> | 2020-06-08 21:07:16 -0400 |
|---|---|---|
| committer | Pete Johanson <peter@peterjohanson.com> | 2020-06-08 21:07:16 -0400 |
| commit | 38f1dbd9842eaf53db359ad46b070bfff8db1359 (patch) | |
| tree | 6a24845fab2043cd0cec8b2086971ff13edeed70 /app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | |
| parent | 92b41d28e5668fab4fe423ccce5f3f85b4537002 (diff) | |
Move Zephyr app into subdirectory.
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, 44 insertions, 0 deletions
diff --git a/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay new file mode 100644 index 0000000..d65b3b1 --- /dev/null +++ b/app/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay @@ -0,0 +1,44 @@ + +/ { + 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 = "gpio-kscan"; + 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 = "gpio-kscan"; + 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)>; + }; +}; |
