|
ESP-IDF Firmware
Firmware architecture and call graph
|
Go to the source code of this file.
Functions | |
| 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. | |
| esp_err_t | led_strip_set_pixel_hsv (led_strip_handle_t strip, uint32_t index, uint16_t hue, uint8_t saturation, uint8_t value) |
| Set HSV for a specific pixel. | |
| 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. | |
| esp_err_t | led_strip_refresh (led_strip_handle_t strip) |
| Refresh memory colors to LEDs. | |
| esp_err_t | led_strip_clear (led_strip_handle_t strip) |
| Clear LED strip (turn off all LEDs). | |
| esp_err_t | led_strip_del (led_strip_handle_t strip) |
| Free LED strip resources. | |
Variables | |
| static const char * | TAG = "led_strip" |
| esp_err_t led_strip_clear | ( | led_strip_handle_t | strip | ) |
Clear LED strip (turn off all LEDs).
| strip | LED strip |
Definition at line 84 of file led_strip_api.c.
References led_strip_t::clear, and TAG.
| esp_err_t led_strip_del | ( | led_strip_handle_t | strip | ) |
Free LED strip resources.
| strip | LED strip |
Definition at line 90 of file led_strip_api.c.
References led_strip_t::del, and TAG.
| esp_err_t led_strip_refresh | ( | led_strip_handle_t | strip | ) |
Refresh memory colors to LEDs.
| strip | LED strip |
Definition at line 78 of file led_strip_api.c.
References led_strip_t::refresh, and TAG.
Referenced by cdc_tx_task().
| 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.
| 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 13 of file led_strip_api.c.
References led_strip_t::set_pixel, and TAG.
Referenced by cdc_tx_task().
| esp_err_t led_strip_set_pixel_hsv | ( | led_strip_handle_t | strip, |
| uint32_t | index, | ||
| uint16_t | hue, | ||
| uint8_t | saturation, | ||
| uint8_t | value ) |
Set HSV for a specific pixel.
| strip | LED strip |
| index | index of pixel to set |
| hue | hue part of color (0 - 360) |
| saturation | saturation part of color (0 - 255, rescaled from 0 - 1. e.g. saturation = 0.5, rescaled to 127) |
| value | value part of color (0 - 255, rescaled from 0 - 1. e.g. value = 0.5, rescaled to 127) |
Definition at line 19 of file led_strip_api.c.
References led_strip_t::set_pixel, and TAG.
| 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.
| 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 72 of file led_strip_api.c.
References led_strip_t::set_pixel_rgbw, and TAG.
|
static |
Definition at line 11 of file led_strip_api.c.