#include "fl/stdint.h"
#include "esp_err.h"
Go to the source code of this file.
◆ led_strip_t
| Class Members | 
|---|
| esp_err_t(*)(led_strip_t *strip) | clear | Clear LED strip (turn off all LEDs) Parameters
  
    | strip | LED strip |  | timeout_ms | timeout value for clearing task | 
 Returns
ESP_OK: Clear LEDs successfullyESP_FAIL: Clear LEDs failed because some other error occurred 
 | 
| esp_err_t(*)(led_strip_t *strip) | del | Free LED strip resources. Parameters
  
  
 Returns
ESP_OK: Free resources successfullyESP_FAIL: Free resources failed because error occurred 
 | 
| esp_err_t(*)(led_strip_t *strip) | refresh | Refresh memory colors to LEDs. Parameters
  
    | strip | LED strip |  | timeout_ms | timeout value for refreshing task | 
 Returns
ESP_OK: Refresh successfullyESP_FAIL: Refresh failed because some other error occurred
 Note: After updating the LED colors in the memory, a following invocation of this API is needed to flush colors to strip. 
 | 
| esp_err_t(*)(led_strip_t *strip) | refresh_async |  | 
| esp_err_t(*)(led_strip_t *strip) | refresh_wait_done |  | 
| esp_err_t(*)(led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue) | set_pixel | Set RGB for a specific pixel. Parameters
  
    | strip | LED strip |  | index | index of pixel to set |  | red | red part of color |  | green | green part of color |  | blue | blue part of color | 
 Returns
ESP_OK: Set RGB for a specific pixel successfullyESP_ERR_INVALID_ARG: Set RGB for a specific pixel failed because of invalid parametersESP_FAIL: Set RGB for a specific pixel failed because other error occurred 
 | 
| esp_err_t(*)(led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue, uint32_t white) | set_pixel_rgbw | Set RGBW for a specific pixel. Similar to set_pixelbut also set the white component Parameters
  
    | strip | LED strip |  | index | index of pixel to set |  | red | red part of color |  | green | green part of color |  | blue | blue part of color |  | white | separate white component | 
 Returns
ESP_OK: Set RGBW color for a specific pixel successfullyESP_ERR_INVALID_ARG: Set RGBW color for a specific pixel failed because of an invalid argumentESP_FAIL: Set RGBW color for a specific pixel failed because other error occurred 
 |