From ebad74a2d6f972819288df02d265259c6b08bc6f Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:50:41 +0100 Subject: [PATCH] Add new encoder defs --- config/boards/arm/bt65/bt65.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/boards/arm/bt65/bt65.dts b/config/boards/arm/bt65/bt65.dts index d16213ef..548747e1 100644 --- a/config/boards/arm/bt65/bt65.dts +++ b/config/boards/arm/bt65/bt65.dts @@ -30,6 +30,7 @@ sensors { compatible = "zmk,keymap-sensors"; sensors = <&encoder_1>; + triggers-per-rotation = <10>; }; default_transform: keymap_transform_0 { @@ -89,7 +90,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 { @@ -97,7 +98,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 { @@ -105,7 +106,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 {