From 60cddcf38d4895411121f6ba51af329f6fab78c4 Mon Sep 17 00:00:00 2001 From: BarryMar <91399958+BarryMar@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:21:21 -0400 Subject: [PATCH] Update gpio.md to be clearer about Driver linkage (#1067) --- docs/gpio.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/gpio.md b/docs/gpio.md index c3ca4c37..247071e8 100644 --- a/docs/gpio.md +++ b/docs/gpio.md @@ -81,6 +81,7 @@ If you don't specify a driver for the channel in the scheme the default driver, | Parameter | Type | Allowed values | Default | Description | |-----------------------------------|-----------|--------------------------|---------|-----------------------| | `led1`, `button1`, `relay1`, etc. | `string` | `a-Z`, numbers, `_`, `-` | | A section for the named channel | +| `driver` | `string` | `a-Z`, numbers, `_`, `-` | | Optional, Name of the section defined above in `Drivers` if not GPIO| | `pin` | `integer` | `X >= 0` | | Refers to a GPIO pin or driver's pin/port | | `mode` | `enum` | `input` or `output` | | Defines if a channel is used for input or output, may be limited by driver plugin | | **Input only** | | | | | @@ -117,10 +118,12 @@ kvmd: switch: false relay1: # Channel 1 of the relay /dev/hidraw0 + driver: relay # Not GPIO, so add name from the above Drivers section pin: 0 # Numerating starts from 0 mode: output # Relays can't be inputs initial: null # Don't reset the state to 0 when initializing and terminating KVMD relay2: # Channel 2 + driver: relay pin: 1 mode: output initial: null