Skip to content

Commit

Permalink
Update encoders to new defs
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Jul 30, 2023
1 parent a61cc37 commit 7a262d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/boards/arm/bt60/bt60.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder_1>;
triggers-per-rotation = <10>;
};

default_transform: keymap_transform_0 {
Expand Down Expand Up @@ -87,23 +88,23 @@
label = "ENCODER_ONE";
a-gpios = <&gpio0 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <24>;
status = "okay";
};
encoder_2: encoder_2 {
compatible = "alps,ec11";
label = "ENCODER_TWO";
a-gpios = <&gpio0 26 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <24>;
status = "okay";
};
encoder_3: encoder_3 {
compatible = "alps,ec11";
label = "encoder_3";
a-gpios = <&gpio0 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <24>;
status = "okay";
};
backlight: pwmleds {
Expand Down

0 comments on commit 7a262d9

Please sign in to comment.