Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
led_strip_encoder.h File Reference

Go to the source code of this file.

Data Structures

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.
 

Data Structure Documentation

◆ led_strip_encoder_config_t

struct led_strip_encoder_config_t
Data Fields
uint32_t resolution

Encoder resolution, in Hz

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