-
CONFIG_WS2812_STRIP_SPI_BAUD_RATE
¶
Baud rate to use to drive LED strip
Type: int
Help¶
SPI clock rate, in Hz, to use while driving the strip. The baud rate must be chosen carefully together with the WS2812_STRIP_SPI_ONE_FRAME and WS2812_STRIP_SPI_ZERO_FRAME values so that the transmitted frames meet the chipset pulse widths for one and zero bits. If unsure, keep the default, but enable SPI debug logging for your device and make sure the configuration is matched exactly at runtime.
Defaults¶
- 5250000 if
WS2812_STRIP
&&LED_STRIP
Kconfig definition¶
At drivers/led_strip/Kconfig.ws2812:42
Included via Kconfig:10
→ Kconfig.zephyr:29
→ drivers/Kconfig:76
→ drivers/led_strip/Kconfig:46
Menu path: (top menu) → Device Drivers → LED strip drivers → Enable WS2812 (and compatible) LED strip driver
config WS2812_STRIP_SPI_BAUD_RATE int prompt "Baud rate to use to drive LED strip" ifWS2812_STRIP
&&LED_STRIP
default 5250000 ifWS2812_STRIP
&&LED_STRIP
depends onWS2812_STRIP
&&LED_STRIP
help SPI clock rate, in Hz, to use while driving the strip. The baud rate must be chosen carefully together with the WS2812_STRIP_SPI_ONE_FRAME and WS2812_STRIP_SPI_ZERO_FRAME values so that the transmitted frames meet the chipset pulse widths for one and zero bits. If unsure, keep the default, but enable SPI debug logging for your device and make sure the configuration is matched exactly at runtime.
(Definitions include propagated dependencies, including from if’s and menus.)