Update rpi_gpio_pwm light component configuration (#7433)

* Update rpi_gpio_pwm light component configuration

* Remove period
This commit is contained in:
Klaas Schoute 2018-11-08 09:24:40 +01:00 committed by Fabian Affolter
parent 257a179bf2
commit 0699356655

View File

@ -33,15 +33,39 @@ light:
type: simple
```
Configuration variables:
- **leds** array (*Required*): Can contain multiple LEDs.
- **name** (*Required*): The name of the LED.
- **driver** (*Required*): The driver which controls the LED. Choose either `gpio` or `pca9685`.
- **pins** (*Required*): The pins connected to the LED as a list.. The order of pins is determined by the specified type.
- **type** (*Required*): The type of LED. Choose either `rgb`, `rgbw` or `simple`.
- **freq** (*Optional*): The PWM frequency. (Default: `200`)
- **address** (*Optional*): The address of the PCA9685 driver. (Default: `0x40`)
{% configuration %}
leds:
description: Can contain multiple LEDs.
required: true
type: list
keys:
name:
description: The name of the LED.
required: true
type: string
driver:
description: The driver which controls the LED. Choose either `gpio` or `pca9685`.
required: true
type: string
pins:
description: The pins connected to the LED as a list. The order of pins is determined by the specified type.
required: true
type: [list, integer]
type:
description: The type of LED. Choose either `rgb`, `rgbw` or `simple`.
required: true
type: string
freq:
description: The PWM frequency.
required: false
default: 200
type: integer
address:
description: The address of the PCA9685 driver.
required: false
default: 0x40
type: string
{% endconfiguration %}
## {% linkable_title Examples %}