ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
led_strip.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022-2023 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 "esp_idf_version.h"
12
13#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
14#include "led_strip_spi.h"
15#endif
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
35esp_err_t led_strip_set_pixel(led_strip_handle_t strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue);
36
55esp_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);
56
71esp_err_t led_strip_set_pixel_hsv(led_strip_handle_t strip, uint32_t index, uint16_t hue, uint8_t saturation, uint8_t value);
72
86
97
108
109#ifdef __cplusplus
110}
111#endif
int esp_err_t
Definition esp_err.h:21
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_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(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
LED strip handle.