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>
31 lines
826 B
YAML
31 lines
826 B
YAML
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
description: |
|
|
Driver for a dedicated key for invoking a connected behavior.
|
|
|
|
compatible: "zmk,behavior-key"
|
|
|
|
include: base.yaml
|
|
|
|
properties:
|
|
key:
|
|
type: phandle
|
|
required: true
|
|
description: The GPIO key that triggers wake via interrupt
|
|
bindings:
|
|
type: phandle
|
|
required: true
|
|
description: The GPIO key that triggers wake via interrupt
|
|
debounce-press-ms:
|
|
type: int
|
|
default: 5
|
|
description: Debounce time for key press in milliseconds. Use 0 for eager debouncing.
|
|
debounce-release-ms:
|
|
type: int
|
|
default: 5
|
|
description: Debounce time for key release in milliseconds.
|
|
debounce-scan-period-ms:
|
|
type: int
|
|
default: 1
|
|
description: Time between reads in milliseconds when any key is pressed.
|