HF-WS2812 Driver 0.1.0-dev
HF-WS2812 ESP32 RMT Driver
Loading...
Searching...
No Matches
led_strip_encoder.h File Reference
#include "driver/rmt_encoder.h"
#include <stdint.h>
Include dependency graph for led_strip_encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  led_strip_encoder_config_t
 Type of led strip encoder configuration. More...
 

Functions

esp_err_t rmt_new_led_strip_encoder (const led_strip_encoder_config_t *config, rmt_encoder_handle_t *ret_encoder)
 Create RMT encoder for encoding LED strip pixels into RMT symbols.
 

Function Documentation

◆ rmt_new_led_strip_encoder()

esp_err_t rmt_new_led_strip_encoder ( const led_strip_encoder_config_t * config,
rmt_encoder_handle_t * ret_encoder )

Create RMT encoder for encoding LED strip pixels into RMT symbols.

Parameters
[in]configEncoder configuration
[out]ret_encoderReturned encoder handle
Returns
  • ESP_ERR_INVALID_ARG for any invalid arguments
  • ESP_ERR_NO_MEM out of memory when creating led strip encoder
  • ESP_OK if creating encoder successfully