From ce787175c7a4c9cd4374062ea24c519554a0c101 Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:40:37 +0100 Subject: [PATCH] Update encoders to new defs --- config/boards/arm/bt60/bt60.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/boards/arm/bt60/bt60.dts b/config/boards/arm/bt60/bt60.dts index d10e52b5..7f886d0e 100644 --- a/config/boards/arm/bt60/bt60.dts +++ b/config/boards/arm/bt60/bt60.dts @@ -30,6 +30,7 @@ sensors { compatible = "zmk,keymap-sensors"; sensors = <&encoder_1>; + triggers-per-rotation = <10>; }; default_transform: keymap_transform_0 { @@ -87,7 +88,7 @@ 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 { @@ -95,7 +96,7 @@ 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 { @@ -103,7 +104,7 @@ 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 {