refactor: Update boards/shields for encoders.

* Update existing boards/shields for new `steps` and
  `triggers-per-rotation` set up.
This commit is contained in:
Peter Johanson
2023-10-18 02:33:03 +00:00
committed by Pete Johanson
parent 8d09809ef0
commit 34c8b3f1e3
22 changed files with 69 additions and 51 deletions

View File

@@ -12,6 +12,7 @@
sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder_1>;
triggers-per-rotation = <20>;
};
keymap {

View File

@@ -18,7 +18,7 @@
label = "Encoder 1";
a-gpios = <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
b-gpios = <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
resolution = <4>;
steps = <80>;
status = "okay";
};