fix(shields): Fix deprecated encoder properties
Switched remaining shields over from resolution to steps.
This commit is contained in:
parent
f24a0bf9c8
commit
c2299e2203
2 changed files with 2 additions and 3 deletions
|
@ -42,12 +42,13 @@
|
|||
compatible = "alps,ec11";
|
||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
resolution = <2>;
|
||||
steps = <80>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
sensors: sensors {
|
||||
compatible = "zmk,keymap-sensors";
|
||||
sensors = <&encoder>;
|
||||
triggers-per-rotation = <20>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -29,13 +29,11 @@
|
|||
};
|
||||
|
||||
&left_encoder {
|
||||
resolution = <2>;
|
||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
};
|
||||
|
||||
&right_encoder {
|
||||
resolution = <2>;
|
||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue