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
+12
View File
@@ -25,6 +25,18 @@
zmk,matrix-transform = &default_transform;
};
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
resolution = <4>;
status = "disabled";
};
sensors {
compatible = "zmk,keymap-sensors";
sensors = <&left_encoder>;
};
default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <14>;
+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";
+4
View File
@@ -21,3 +21,7 @@ CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=160
CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=3
#CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y
#EC11 enable
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y