feat(behaviors): Add soft off behavior.

* New soft-off behavior that can be used to force the device
  into  soft-off state with only certain configured wakeup
  devices.
This commit is contained in:
Peter Johanson
2023-09-13 20:01:02 +00:00
committed by Pete Johanson
parent 738c3c0e3b
commit b19df0cbf0
5 changed files with 92 additions and 2 deletions

View File

@@ -6,9 +6,8 @@
/ {
behaviors {
/omit-if-no-ref/ soft_off: behavior_soft_off {
soft_off: soft_off {
compatible = "zmk,behavior-soft-off";
label = "SOFTOFF";
#binding-cells = <0>;
};
};