This commit is contained in:
Chen Zeng
2024-07-15 22:56:06 +08:00
parent 67d7a0c62f
commit 02a7d12c23
3 changed files with 19 additions and 10 deletions
+3 -10
View File
@@ -35,18 +35,11 @@
;
};
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
&left_encoder {
a-gpios = <&gpio1 10 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
b-gpios = <&gpio1 14 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
resolution = <4>;
status = "okay";
};
sensors {
compatible = "zmk,keymap-sensors";
sensors = <&left_encoder>;
};
status = "okay";
};
ext-power {
compatible = "zmk,ext-power-generic";