|
WS2812 RMT Driver
API reference
|
Classes | |
| struct | rmt_led_strip_encoder_t |
Macros | |
| #define | LED_NS_TO_TICKS(ns) ((uint16_t)(((uint64_t)(ns) * config->resolution + 500000000ULL) / 1000000000ULL)) |
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. | |
| #define LED_NS_TO_TICKS | ( | ns | ) | ((uint16_t)(((uint64_t)(ns) * config->resolution + 500000000ULL) / 1000000000ULL)) |
| 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.
The encoder takes bytes in wire order (G, R, B for a WS2812B; G, R, B, W for an RGBW part), sends them high bit first and appends the reset code.
| [in] | config | Encoder configuration |
| [out] | ret_encoder | Returned encoder handle |