CONFIG_WS2812_STRIP_MAX_PIXELS

Maximum number of pixels in a strip

Type: int

Help

Set this to the maximum number of pixels you need to control at once. There is an 8x memory penalty associated with each increment of this value, so it’s worth optimizing.

Direct dependencies

WS2812_STRIP && LED_STRIP

(Includes any dependencies from ifs and menus.)

Default

  • 12

Kconfig definition

At drivers/led_strip/Kconfig.ws2812:23

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:68drivers/led_strip/Kconfig:32

Menu path: (Top) → Device Drivers → LED strip drivers → Enable WS2812 (and compatible) LED strip driver

config WS2812_STRIP_MAX_PIXELS
    int "Maximum number of pixels in a strip"
    default 12
    depends on WS2812_STRIP && LED_STRIP
    help
      Set this to the maximum number of pixels you need
      to control at once. There is an 8x memory penalty associated
      with each increment of this value, so it's worth optimizing.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)