diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-06 10:04:19 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-06 10:04:19 -0400 |
commit | 70bf1230fa45dde5c91bf684f439bc1e88d4413c (patch) | |
tree | aeaa2e0b978fcd348ca8a5f7d7aee28e175e89b6 /boards/shields/petejohanson_handwire | |
parent | a63a773983e8e575778ba2e3b326b3f2e63ce26e (diff) |
Tweak to use a chosen node for kscan device.
Diffstat (limited to 'boards/shields/petejohanson_handwire')
-rw-r--r-- | boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay index 3a777a6..215531d 100644 --- a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay +++ b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay @@ -3,6 +3,7 @@ / { chosen { zmk,keymap = &keymap0; + zmk,kscan = &kscan0; }; layers { @@ -10,7 +11,11 @@ default: layer_0 { label = "Default"; - keys = <KC_A KC_B KC_C KC_D>; + keys = + < + KC_A KC_B + KC_C KC_D + >; }; lower: layer_1 { @@ -31,9 +36,9 @@ layers = <&default &lower &raise>; }; - kscan { + kscan0: kscan { compatible = "gpio-kscan"; - label = "Handwired GPIO KSCAN matrix"; + label = "KSCAN"; diode-direction = "row2col"; row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |