From 0f81eec8a5573e9f2fa2d73f61e4759837c38b5c 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 71cc83b7..b20f5821 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 {