Skip to content

Commit b75a8e1

Browse files
committed
new overlay
1 parent 2e2acb7 commit b75a8e1

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

config/sofle_left.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/ {
2+
left_encoder: encoder_left {
3+
compatible = "alps,ec11";
4+
a-gpios = <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
5+
b-gpios = <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
6+
steps = <80>;
7+
status = "okay";
8+
};
9+
10+
sensors: sensors {
11+
compatible = "zmk,keymap-sensors";
12+
sensors = <&left_encoder>;
13+
triggers-per-rotation = <20>;
14+
};
15+
};
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
/ {
2-
left_encoder: encoder_left {
3-
compatible = "alps,ec11";
4-
a-gpios = <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
5-
b-gpios = <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
6-
steps = <80>;
7-
status = "okay";
8-
};
9-
102
right_encoder: encoder_right {
113
compatible = "alps,ec11";
124
a-gpios = <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
@@ -17,7 +9,7 @@
179

1810
sensors: sensors {
1911
compatible = "zmk,keymap-sensors";
20-
sensors = <&left_encoder &right_encoder>;
12+
sensors = <&right_encoder>;
2113
triggers-per-rotation = <20>;
2214
};
23-
};
15+
};

0 commit comments

Comments
 (0)