mirror of
https://github.com/Ajetski/corne-zmk-config.git
synced 2025-11-27 13:02:45 -10:00
refactor: consolidate encoder config
This commit is contained in:
parent
9da0f34455
commit
b85964cf00
@ -26,14 +26,15 @@
|
|||||||
|
|
||||||
left_encoder: encoder_left {
|
left_encoder: encoder_left {
|
||||||
compatible = "alps,ec11";
|
compatible = "alps,ec11";
|
||||||
label = "LEFT_ENCODER";
|
a-gpios = <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
resolution = <4>;
|
b-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
steps = <40>;
|
steps = <40>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
sensors {
|
sensors {
|
||||||
compatible = "zmk,keymap-sensors";
|
compatible = "zmk,keymap-sensors";
|
||||||
|
triggers-per-rotation = <20>;
|
||||||
sensors = <&left_encoder>;
|
sensors = <&left_encoder>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ arch: arm
|
|||||||
features:
|
features:
|
||||||
- keys
|
- keys
|
||||||
- display
|
- display
|
||||||
|
- encoder
|
||||||
outputs:
|
outputs:
|
||||||
- usb
|
- usb
|
||||||
- ble
|
- ble
|
||||||
|
|||||||
@ -48,8 +48,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&left_encoder {
|
&left_encoder {
|
||||||
a-gpios = <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
b-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user