Update sofle.dtsi

This commit is contained in:
Yaroslav Kondratev 2024-08-27 16:46:21 +03:00 committed by GitHub
parent a7ca58c38d
commit 6c74520e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,11 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
>;
};
soft_off_wakers {
compatible = "zmk,soft-off-wakeup-sources";
wakeup-sources = <&encoder_switch>; // Пробуждение только от нажатия энкодера
};
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
@ -51,7 +56,6 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
steps = <80>;
status = "disabled";
wakeup-source;
};
right_encoder: encoder_right {
@ -60,7 +64,13 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
steps = <80>;
status = "disabled";
wakeup-source;
};
encoder_switch: encoder_switch {
compatible = "gpio-keys";
gpios = <&pro_micro 22 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; // Пин для нажатия энкодера
wakeup-source; // Пробуждение от нажатия
label = "Encoder Switch";
};
sensors: sensors {