FastLED 3.9.15
Loading...
Searching...
No Matches
led_strip.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#pragma once
7
8#include <stdint.h>
9#include "esp_err.h"
10#include "led_strip_rmt.h"
11#include "led_strip_spi.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
31esp_err_t led_strip_set_pixel(led_strip_handle_t strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue);
32
51esp_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);
52
67esp_err_t led_strip_set_pixel_hsv(led_strip_handle_t strip, uint32_t index, uint16_t hue, uint8_t saturation, uint8_t value);
68
82
83
85
87
98
109
110#ifdef __cplusplus
111}
112#endif
esp_err_t led_strip_clear(led_strip_handle_t strip)
Clear LED strip (turn off all LEDs)
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_wait_done(led_strip_handle_t strip)
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_refresh_async(led_strip_handle_t strip)
esp_err_t led_strip_refresh(led_strip_handle_t strip)
Refresh memory colors to LEDs.
esp_err_t led_strip_del(led_strip_handle_t strip)
Free LED strip resources.
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.
struct led_strip_t * led_strip_handle_t
Type of LED strip handle.