RP2040 PIO LED Strip
This is a component using the RP2040 PIO peripheral to drive most addressable LED strips.
light: - platform: rp2040_pio_led_strip name: led_strip id: led_strip pin: GPIOXX num_leds: 10 pio: 0 channel_colors: GRB chipset: WS2812BConfiguration variables
Section titled “Configuration variables”-
pin (Required, Pin): The pin for the data line of the light.
-
num_leds (Required, int): The number of LEDs in the strip.
-
pio (Required, int): The PIO peripheral to use. If using multiple strips, you can use up to 4 strips per PIO. Must be one of
0or1. -
chipset (Optional, enum): The chipset to apply known timings from.
WS2812WS2812BSK6812SM16703
-
channel_colors (Required, string): The order in which the strip expects its color channels. List each of
R,GandBexactly once, optionally with a singleWin any position; for exampleGRB,BGR,GRBW,WRGBorRWGB. The value is case-insensitive. Including aWmakes this a four channel RGBW strip. -
All other options from Light.
Manual Timings
Section titled “Manual Timings”These can be used if you know the timings and your chipset is not set above. If you have a new specific chipset, please consider adding support to the codebase and add it to the list above.
- bit0_high (Optional, Time): The time to hold the data line high for a
0bit. - bit0_low (Optional, Time): The time to hold the data line low for a
0bit. - bit1_high (Optional, Time): The time to hold the data line high for a
1bit. - bit1_low (Optional, Time): The time to hold the data line low for a
1bit.