From 2bee37202f47da6381cc6cc76b64f536c8e40972 Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:53:29 +0100 Subject: [PATCH] Add encoder defs --- config/boards/arm/bt75/bt75.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/boards/arm/bt75/bt75.dts b/config/boards/arm/bt75/bt75.dts index e8f83c10..4d3eb349 100644 --- a/config/boards/arm/bt75/bt75.dts +++ b/config/boards/arm/bt75/bt75.dts @@ -30,6 +30,7 @@ sensors { compatible = "zmk,keymap-sensors"; sensors = <&encoder_1>; + triggers-per-rotation = <10>; }; default_transform: keymap_transform_0 { @@ -90,7 +91,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 { @@ -98,7 +99,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 { @@ -106,7 +107,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 {