1 parent 7de539d commit cc75e97Copy full SHA for cc75e97
1 file changed
config/sofle.overlay
@@ -0,0 +1,23 @@
1
+/ {
2
+ left_encoder: encoder_left {
3
+ compatible = "alps,ec11";
4
+ a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
5
+ b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
6
+ steps = <80>;
7
+ status = "okay";
8
+ };
9
+
10
+ right_encoder: encoder_right {
11
12
+ a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
13
+ b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
14
15
16
17
18
+ sensors: sensors {
19
+ compatible = "zmk,keymap-sensors";
20
+ sensors = <&left_encoder &right_encoder>;
21
+ triggers-per-rotation = <20>;
22
23
+};
0 commit comments