From 0699356655f1360212613b829c756f3c0d34e280 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 8 Nov 2018 09:24:40 +0100 Subject: [PATCH] Update rpi_gpio_pwm light component configuration (#7433) * Update rpi_gpio_pwm light component configuration * Remove period --- .../_components/light.rpi_gpio_pwm.markdown | 42 +++++++++++++++---- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/source/_components/light.rpi_gpio_pwm.markdown b/source/_components/light.rpi_gpio_pwm.markdown index d292b213a54..6d0fe793249 100644 --- a/source/_components/light.rpi_gpio_pwm.markdown +++ b/source/_components/light.rpi_gpio_pwm.markdown @@ -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 %}