From 70bf1230fa45dde5c91bf684f439bc1e88d4413c Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Wed, 6 May 2020 10:04:19 -0400 Subject: Tweak to use a chosen node for kscan device. --- .../petejohanson_handwire/petejohanson_handwire.overlay | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'boards') 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 = ; + 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)>, -- cgit v1.2.3