mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-12 20:10:50 +01:00
Add beken_spi_led_strip component (#3755)
This commit is contained in:
parent
da462c65b6
commit
2760b2221c
59
components/light/beken_spi_led_strip.rst
Normal file
59
components/light/beken_spi_led_strip.rst
Normal file
@ -0,0 +1,59 @@
|
||||
Beken SPI LED Strip
|
||||
===================
|
||||
|
||||
.. seo::
|
||||
:description: Instructions for setting up addressable lights like NEOPIXEL on a Beken chip using the SPI DMA interface.
|
||||
:image: color_lens.svg
|
||||
|
||||
This is a component using the Beken SPI DMA interface to drive addressable LED strips.
|
||||
|
||||
.. warning::
|
||||
|
||||
Only works on pin P16, which is not available on many tuya modules.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
light:
|
||||
- platform: beken_spi_led_strip
|
||||
rgb_order: GRB
|
||||
pin: P16
|
||||
num_leds: 30
|
||||
chipset: ws2812
|
||||
name: "My Light"
|
||||
|
||||
Configuration variables
|
||||
-----------------------
|
||||
|
||||
- **pin** (**Required**, :ref:`config-pin`): The pin for the data line of the light.
|
||||
- **num_leds** (**Required**, int): The number of LEDs in the strip.
|
||||
- **chipset** (**Required**, enum): The chipset to apply known timings from.
|
||||
- ``WS2812``
|
||||
- ``SK6812``
|
||||
- ``APA106``
|
||||
- ``SM16703``
|
||||
|
||||
- **rgb_order** (**Required**, string): The RGB order of the strip.
|
||||
- ``RGB``
|
||||
- ``RBG``
|
||||
- ``GRB``
|
||||
- ``GBR``
|
||||
- ``BGR``
|
||||
- ``BRG``
|
||||
|
||||
- **is_rgbw** (*Optional*, boolean): Set to ``true`` if the strip is RGBW. Defaults to ``false``.
|
||||
- **is_wrgb** (*Optional*, boolean): Set to ``true`` if the strip is WRGB. Defaults to ``false``.
|
||||
- **max_refresh_rate** (*Optional*, :ref:`config-time`):
|
||||
A time interval used to limit the number of commands a light can handle per second. For example
|
||||
16ms will limit the light to a refresh rate of about 60Hz. Defaults to sending commands as quickly as
|
||||
changes are made to the lights.
|
||||
|
||||
- All other options from :ref:`Light <config-light>`.
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
- :doc:`/components/light/index`
|
||||
- :doc:`/components/power_supply`
|
||||
- :apiref:`beken_spi_led_strip/beken_spi_led_strip.h`
|
||||
- :ghedit:`Edit`
|
@ -661,6 +661,7 @@ Light Components
|
||||
.. imgtable::
|
||||
|
||||
Light Core, components/light/index, folder-open.svg, dark-invert
|
||||
Beken SPI, components/light/beken_spi_led_strip, color_lens.svg, dark-invert
|
||||
Binary Light, components/light/binary, lightbulb.svg, dark-invert
|
||||
Cold+Warm White Light, components/light/cwww, brightness-medium.svg, dark-invert
|
||||
Color Temperature Light, components/light/color_temperature, brightness-medium.svg, dark-invert
|
||||
|
Loading…
Reference in New Issue
Block a user