From bbba85fd4a3de4aab1bf63a1417e94baccd32b64 Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:40:31 +0000 Subject: [PATCH] Update pw9.dts --- config/boards/arm/pw9/pw9.dts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/boards/arm/pw9/pw9.dts b/config/boards/arm/pw9/pw9.dts index 4013a6a..4dd220d 100644 --- a/config/boards/arm/pw9/pw9.dts +++ b/config/boards/arm/pw9/pw9.dts @@ -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 { @@ -59,7 +60,7 @@ 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 { @@ -67,7 +68,7 @@ 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"; }; @@ -130,4 +131,4 @@ zephyr_udc0: &usbd { LED_COLOR_ID_RED LED_COLOR_ID_BLUE>; }; -}; \ No newline at end of file +};