From decdfe462f3aff592434c4a354d44625dcdf14a5 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 18 Sep 2020 03:36:13 +0300 Subject: [PATCH] Update gpio.md --- pages/gpio.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/gpio.md b/pages/gpio.md index 1abbae5..fbba634 100644 --- a/pages/gpio.md +++ b/pages/gpio.md @@ -66,6 +66,9 @@ If you don't specify a driver for the channel in the scheme the default driver, | `led1`, `button1`, `relay1`, etc. | `string` | `a-Z`, numbers, `_`, `-` | | A section for the named channel | | `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** | | | | | +| `debounce` | `float` | `x >= 0` | `0.1` | [Debounce](https://www.arduino.cc/en/Tutorial/Debounce) time in seconds. `0` for disable debounce | +| **Output only** | | | | | | `switch` | `bool ` | `true` or `false` | `true` | Enables or disables the switch mode on the channel (enabled by default). | | `initial` | `nullable bool` | `true`, `false` or `null` | `false` | Defines the initial state of the switch upon boot, `null` for don't make changes (the last one does not supported by generic GPIO) | | `pulse` | | | | A section header to define switch pulse configuration |