FastLED 3.9.15
Loading...
Searching...
No Matches

◆ led_strip_set_pixel_rgbw()

esp_err_t led_strip_set_pixel_rgbw ( led_strip_handle_t strip,
uint32_t index,
uint32_t red,
uint32_t green,
uint32_t blue,
uint32_t white )

Set RGBW for a specific pixel.

Note
Only call this function if your led strip does have the white component (e.g. SK6812-RGBW)
Also see led_strip_set_pixel if you only want to specify the RGB part of the color and bypass the white component
Parameters
stripLED strip
indexindex of pixel to set
redred part of color
greengreen part of color
blueblue part of color
whiteseparate white component
Returns
  • ESP_OK: Set RGBW color for a specific pixel successfully
  • ESP_ERR_INVALID_ARG: Set RGBW color for a specific pixel failed because of an invalid argument
  • ESP_FAIL: Set RGBW color for a specific pixel failed because other error occurred