Skip to content

Commit

Permalink
Update pw9.dts
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Nov 8, 2023
1 parent 1d3b137 commit bbba85f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/boards/arm/pw9/pw9.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
zmk,underglow = &led_strip;
};

sensors {
sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder_1 &encoder_2>;
triggers-per-rotation = <20>;
};

xtal_clk: xtal-clk {
Expand Down Expand Up @@ -59,15 +60,15 @@
label = "ENCODER_ONE";
a-gpios = <&gpio0 24 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <80>;
status = "okay";
};
encoder_2: encoder_2 {
compatible = "alps,ec11";
label = "ENCODER_TWO";
a-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <80>;
status = "okay";
};

Expand Down Expand Up @@ -130,4 +131,4 @@ zephyr_udc0: &usbd {
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
};
};
};

0 comments on commit bbba85f

Please sign in to comment.