|
ESP-IDF Firmware
Firmware architecture and call graph
|
LED strip interface definition. More...
#include <led_strip_interface.h>
Data Fields | |
| esp_err_t(* | set_pixel )(led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue) |
| Set RGB for a specific pixel. | |
| esp_err_t(* | set_pixel_rgbw )(led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue, uint32_t white) |
| Set RGBW for a specific pixel. Similar to set_pixel but also set the white component. | |
| esp_err_t(* | refresh )(led_strip_t *strip) |
| Refresh memory colors to LEDs. | |
| esp_err_t(* | clear )(led_strip_t *strip) |
| Clear LED strip (turn off all LEDs). | |
| esp_err_t(* | del )(led_strip_t *strip) |
| Free LED strip resources. | |
LED strip interface definition.
Definition at line 20 of file led_strip_interface.h.
| esp_err_t(* led_strip_t::clear) (led_strip_t *strip) |
Clear LED strip (turn off all LEDs).
| strip | LED strip |
| timeout_ms | timeout value for clearing task |
Definition at line 79 of file led_strip_interface.h.
Referenced by led_strip_clear(), led_strip_new_rmt_device(), led_strip_new_rmt_device(), and led_strip_new_spi_device().
| esp_err_t(* led_strip_t::del) (led_strip_t *strip) |
Free LED strip resources.
| strip | LED strip |
Definition at line 90 of file led_strip_interface.h.
Referenced by led_strip_del(), led_strip_new_rmt_device(), led_strip_new_rmt_device(), and led_strip_new_spi_device().
| esp_err_t(* led_strip_t::refresh) (led_strip_t *strip) |
Refresh memory colors to LEDs.
| strip | LED strip |
| timeout_ms | timeout value for refreshing task |
Definition at line 67 of file led_strip_interface.h.
Referenced by led_strip_new_rmt_device(), led_strip_new_rmt_device(), led_strip_new_spi_device(), and led_strip_refresh().
| esp_err_t(* led_strip_t::set_pixel) (led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue) |
Set RGB for a specific pixel.
| strip | LED strip |
| index | index of pixel to set |
| red | red part of color |
| green | green part of color |
| blue | blue part of color |
Definition at line 35 of file led_strip_interface.h.
Referenced by led_strip_new_rmt_device(), led_strip_new_rmt_device(), led_strip_new_spi_device(), led_strip_set_pixel(), and led_strip_set_pixel_hsv().
| esp_err_t(* led_strip_t::set_pixel_rgbw) (led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue, uint32_t white) |
Set RGBW for a specific pixel. Similar to set_pixel but also set the white component.
| 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 |
Definition at line 52 of file led_strip_interface.h.
Referenced by led_strip_new_rmt_device(), led_strip_new_spi_device(), and led_strip_set_pixel_rgbw().