forked from kofal.net/zmk
Testing: split ble encoder test (#2754)
test(sensors): Add mock encoder sensor Add a new mock sensor driver for generating mock encoder sensor channel data. test(split): Add a peripheral sensor split test Test BLE split logic for peripheral sensors (encoders).
This commit is contained in:
21
app/module/dts/bindings/sensor/zmk,sensor-encoder-mock.yaml
Normal file
21
app/module/dts/bindings/sensor/zmk,sensor-encoder-mock.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2024 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: |
|
||||
Allows defining a mock sensor driver that simulates periodic encoder rotation events.
|
||||
|
||||
compatible: "zmk,sensor-encoder-mock"
|
||||
|
||||
properties:
|
||||
event-startup-delay:
|
||||
type: int
|
||||
default: 0
|
||||
description: Milliseconds to delay before starting generating the events
|
||||
event-period:
|
||||
type: int
|
||||
description: Milliseconds between each generated event
|
||||
events:
|
||||
type: array
|
||||
description: List of angle events to generate
|
||||
exit-after:
|
||||
type: boolean
|
||||
Reference in New Issue
Block a user