summaryrefslogtreecommitdiff
path: root/app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-11 23:38:04 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-11 23:38:04 -0400
commit0ee01390bd07f43462e2ef54df9d8ae42b49dede (patch)
treebe444792243596add24f32205caadd866773cff4 /app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay
parent7614e7e52bd2fbed9d878e1618363586fb44385d (diff)
Initial handwire proton-c shield for testing.
Diffstat (limited to 'app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay')
-rw-r--r--app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay b/app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay
new file mode 100644
index 0000000..5deaa42
--- /dev/null
+++ b/app/boards/shields/petejohanson_proton_handwire/petejohanson_proton_handwire.overlay
@@ -0,0 +1,17 @@
+
+/ {
+ chosen {
+ zmk,kscan = &kscan0;
+ };
+
+ kscan0: kscan {
+ compatible = "gpio-kscan";
+ label = "KSCAN";
+
+ diode-direction = "row2col";
+ row-gpios = <&pro_micro_pins 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
+ <&pro_micro_pins 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+ col-gpios = <&pro_micro_pins 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
+ <&pro_micro_pins 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+ };
+};