Skip to content

Commit

Permalink
Add new encoder defs
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Jul 30, 2023
1 parent 0a88737 commit a3f6f4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/boards/arm/bt65/bt65.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 @@ -89,23 +90,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 a3f6f4f

Please sign in to comment.