Skip to content

Commit cc75e97

Browse files
committed
add overlay
1 parent 7de539d commit cc75e97

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

config/sofle.overlay

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
compatible = "alps,ec11";
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+
steps = <80>;
15+
status = "okay";
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

Comments
 (0)