From 13aabc364b60473339c948bab93784debf39360a Mon Sep 17 00:00:00 2001 From: Zachary Vorhies Date: Wed, 8 Jan 2025 15:24:50 -0800 Subject: [PATCH] Fixes bug in led_strip_rmt_ws2812 example ESP32S3 mem_block_symbols must be a multiple of 48 on the ESP32S3. Setting this to 0 in the example allows the driver to use this automatically. --- .../led_strip_rmt_ws2812/main/led_strip_rmt_ws2812_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/led_strip/examples/led_strip_rmt_ws2812/main/led_strip_rmt_ws2812_main.c b/led_strip/examples/led_strip_rmt_ws2812/main/led_strip_rmt_ws2812_main.c index 0fd88b30a8..e73e1b05b7 100644 --- a/led_strip/examples/led_strip_rmt_ws2812/main/led_strip_rmt_ws2812_main.c +++ b/led_strip/examples/led_strip_rmt_ws2812/main/led_strip_rmt_ws2812_main.c @@ -36,7 +36,7 @@ led_strip_handle_t configure_led(void) led_strip_rmt_config_t rmt_config = { .clk_src = RMT_CLK_SRC_DEFAULT, // different clock source can lead to different power consumption .resolution_hz = LED_STRIP_RMT_RES_HZ, // RMT counter clock frequency - .mem_block_symbols = 64, // the memory size of each RMT channel, in words (4 bytes) + .mem_block_symbols = 0, // the memory size of each RMT channel, 0 lets the driver decide. .flags = { .with_dma = false, // DMA feature is available on chips like ESP32-S3/P4 }