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:
Pete Johanson
2025-01-06 12:41:02 -07:00
committed by GitHub
parent 3377ed02a8
commit d0ee30bfaa
13 changed files with 235 additions and 0 deletions

View 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