From 6e9492c246d81f7de59b0793d43ec419c4d8a532 Mon Sep 17 00:00:00 2001
From: bullwinkle3000 <91431084+bullwinkle3000@users.noreply.github.com>
Date: Sun, 27 Oct 2024 15:12:27 -0400
Subject: [PATCH] encoder definition
---
.idea/workspace.xml | 29 +++++++++++-----------
config/boards/shields/wyld_dm/wyld_dm.dtsi | 26 +++++++++----------
2 files changed, 28 insertions(+), 27 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b934699..1d6c292 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,8 +9,9 @@
-
-
+
+
+
@@ -137,15 +138,7 @@
-
-
-
-
- 1725128080006
-
-
-
- 1725128080006
+
@@ -531,7 +524,15 @@
1730055820592
-
+
+
+ 1730055920808
+
+
+
+ 1730055920808
+
+
@@ -593,7 +594,6 @@
-
@@ -618,7 +618,8 @@
-
+
+
;
-// b-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
-// steps = <60>;
-// status = "disabled";
-// };
+ right_encoder: encoder_right {
+ compatible = "alps,ec11";
+ label = "RIGHT_ENCODER";
+ a-gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ b-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ steps = <60>;
+ status = "disabled";
+ };
-// sensors: sensors {
-// compatible = "zmk,keymap-sensors";
-// sensors = <&right_encoder>, <&left_encoder>;
-// triggers-per-rotation = <15>;
-// };
+ sensors: sensors {
+ compatible = "zmk,keymap-sensors";
+ sensors = <&right_encoder>;
+ triggers-per-rotation = <15>;
+ };
};