Update sofle_left.overlay
This commit is contained in:
parent
0a80c7e6a0
commit
0463d21363
1 changed files with 5 additions and 27 deletions
|
@ -5,11 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sofle.dtsi"
|
#include "sofle.dtsi"
|
||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zmk,kscan = &side_band_behavior_triggers;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&kscan0 {
|
&kscan0 {
|
||||||
col-gpios
|
col-gpios
|
||||||
|
@ -24,38 +19,21 @@
|
||||||
|
|
||||||
// start soft-off
|
// start soft-off
|
||||||
|
|
||||||
/{
|
|
||||||
behaviors {
|
|
||||||
hw_soft_off: hw_soft_off {
|
|
||||||
compatible = "zmk,behavior-soft-off";
|
|
||||||
#binding-cells = <0>;
|
|
||||||
hold-time-ms = <3000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
side_band_behavior_triggers: side_band_behavior_triggers {
|
/{
|
||||||
compatible = "zmk,kscan-sideband-behaviors";
|
|
||||||
wakeup-source;
|
|
||||||
kscan = <&kscan0>;
|
|
||||||
soft_off {
|
|
||||||
column = <5>;
|
|
||||||
row = <4>;
|
|
||||||
bindings = <&hw_soft_off>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
/*
|
|
||||||
wakeup_source: wakeup_source {
|
wakeup_source: wakeup_source {
|
||||||
compatible = "zmk,gpio-key-wakeup-trigger";
|
compatible = "zmk,gpio-key-wakeup-trigger";
|
||||||
|
|
||||||
trigger = <&kscan0>;
|
trigger = <&wakeup_key>;
|
||||||
wakeup-source;
|
wakeup-source;
|
||||||
|
extra-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
soft_off_wakers {
|
soft_off_wakers {
|
||||||
compatible = "zmk,soft-off-wakeup-sources";
|
compatible = "zmk,soft-off-wakeup-sources";
|
||||||
wakeup-sources = <&wakeup_source>;
|
wakeup-sources = <&wakeup_source>;
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&left_encoder {
|
&left_encoder {
|
||||||
|
|
Loading…
Add table
Reference in a new issue