forked from kofal.net/zmk
refactor: Fixes for soft-off based on review.
* Better naming for gpio-key behavior triggers. * Tweaks to scanned behavior trigger to avoid bad semaphore use, and reduce chance of issues with slowly scanned matrixes. * Various code cleanups of style issues.
This commit is contained in:
committed by
Pete Johanson
parent
96968514e3
commit
fceb0351a5
31
app/dts/bindings/zmk,gpio-key-behavior-trigger.yaml
Normal file
31
app/dts/bindings/zmk,gpio-key-behavior-trigger.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright (c) 2023 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: |
|
||||
Driver for a dedicated key for invoking a connected behavior.
|
||||
|
||||
compatible: "zmk,gpio-key-behavior-trigger"
|
||||
|
||||
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 behavior to invoke when the GPIO key is pressed
|
||||
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.
|
||||
Reference in New Issue
Block a user