zmk/app/module/dts/bindings/sensor/ck,thb.yaml
Xiao Qin 869c63d3c0
feat(drivers): add analog joystick driver
Analog joystick drivers for THB using ADC to read joystick sensor output
and convert the reading to [-1.0 1.0] range
2023-10-12 11:06:51 -07:00

33 lines
730 B
YAML

description: |
Sensor driver for the C-K THB001 joystick
compatible: "ck,thb"
include: base.yaml
properties:
io-channels:
required: true
description: |
Channels available with this divider configuration.
io-channel-names:
required: true
description: |
Channels names, use "X-AXIS" and "Y-AXIS" accordingly
min-mv:
type: int
required: false
description: |
Minimum voltage output on the potentiometer
If absent, a default 0 value will be used
max-mv:
type: int
required: true
description: |
Maximum voltage output on the potentiometer
max-mv - min-mv will be the full range of potentiometer output