File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ };
Original file line number Diff line number Diff line change 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)>;
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+ };
You can’t perform that action at this time.
0 commit comments