Update sofle.dtsi
This commit is contained in:
parent
a7ca58c38d
commit
6c74520e88
1 changed files with 12 additions and 2 deletions
|
@ -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 {
|
kscan0: kscan {
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
wakeup-source;
|
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)>;
|
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
steps = <80>;
|
steps = <80>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
wakeup-source;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
right_encoder: encoder_right {
|
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)>;
|
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
steps = <80>;
|
steps = <80>;
|
||||||
status = "disabled";
|
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 {
|
sensors: sensors {
|
||||||
|
|
Loading…
Add table
Reference in a new issue