summaryrefslogtreecommitdiff
path: root/app/boards/shields/boardsource3x4/boardsource3x4.overlay
diff options
context:
space:
mode:
authorNigel Rodriguez <anr.rod@gmail.com>2020-10-24 12:21:15 +0800
committerNigel Rodriguez <anr.rod@gmail.com>2020-10-24 12:21:15 +0800
commit6a9a6e6d8edaae5f3e5bc37033a9391bc66e786a (patch)
tree12e3a11ead066aef473ffed0314aaafc25ea19ba /app/boards/shields/boardsource3x4/boardsource3x4.overlay
parent518bcacba143df30c9224650e2ada18e49150d16 (diff)
Add Boardsource 3x4 shield
Diffstat (limited to 'app/boards/shields/boardsource3x4/boardsource3x4.overlay')
-rw-r--r--app/boards/shields/boardsource3x4/boardsource3x4.overlay38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/boards/shields/boardsource3x4/boardsource3x4.overlay b/app/boards/shields/boardsource3x4/boardsource3x4.overlay
new file mode 100644
index 0000000..d68ac30
--- /dev/null
+++ b/app/boards/shields/boardsource3x4/boardsource3x4.overlay
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#include <dt-bindings/zmk/matrix-transform.h>
+
+/ {
+ chosen {
+ zmk,kscan = &kscan0;
+ };
+
+ kscan0: kscan {
+ compatible = "zmk,kscan-gpio-matrix";
+ label = "KSCAN";
+ diode-direction = "col2row";
+
+ row-gpios
+ = <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ ;
+
+ col-gpios
+ = <&pro_micro_d 10 GPIO_ACTIVE_HIGH>
+ , <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
+ , <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
+ , <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
+ ;
+
+ };
+
+ bt_unpair_combo: bt_unpair_combo {
+ compatible = "zmk,bt-unpair-combo";
+ key-positions = <0 11>;
+ };
+}; \ No newline at end of file