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

◆ led_strip_set_pixel()

esp_err_t led_strip_set_pixel ( led_strip_handle_t strip,
uint32_t index,
uint32_t red,
uint32_t green,
uint32_t blue )

Set RGB for a specific pixel.

Parameters
stripLED strip
indexindex of pixel to set
redred part of color
greengreen part of color
blueblue part of color
Returns
  • ESP_OK: Set RGB for a specific pixel successfully
  • ESP_ERR_INVALID_ARG: Set RGB for a specific pixel failed because of invalid parameters
  • ESP_FAIL: Set RGB for a specific pixel failed because other error occurred