Files
zmk/app/module/dts/bindings/sensor/zmk,sensor-encoder-mock.yaml
Pete Johanson d0ee30bfaa 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).
2025-01-06 14:41:02 -05:00

22 lines
555 B
YAML

# 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