Update sofle_left.overlay
This commit is contained in:
parent
0cac845636
commit
0d08607119
1 changed files with 42 additions and 0 deletions
|
@ -5,6 +5,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sofle.dtsi"
|
#include "sofle.dtsi"
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,display = &oled;
|
||||||
|
zmk,kscan = &side_band_behavior_triggers;
|
||||||
|
zmk,matrix-transform = &default_transform;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&kscan0 {
|
&kscan0 {
|
||||||
col-gpios
|
col-gpios
|
||||||
|
@ -17,6 +24,41 @@
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 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 {
|
||||||
|
compatible = "zmk,gpio-key-wakeup-trigger";
|
||||||
|
|
||||||
|
trigger = <&side_band_behavior_triggers;
|
||||||
|
wakeup-source;
|
||||||
|
};
|
||||||
|
|
||||||
|
soft_off_wakers {
|
||||||
|
compatible = "zmk,soft-off-wakeup-sources";
|
||||||
|
wakeup-sources = <&wakeup_source>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&left_encoder {
|
&left_encoder {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue