Initial work on a soft on/off support for ZMK. Triggering soft off puts the device into deep sleep with only a specific GPIO pin configured to wake the device, avoiding waking from other key presses in the matrix like the normal deep sleep. Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
15 lines
297 B
Text
15 lines
297 B
Text
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ soft_off: behavior_soft_off {
|
|
compatible = "zmk,behavior-soft-off";
|
|
label = "SOFTOFF";
|
|
#binding-cells = <0>;
|
|
};
|
|
};
|
|
};
|