Skip to content

Commit

Permalink
Fixes bug in led_strip_rmt_ws2812 example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zackees authored Jan 8, 2025
1 parent 9757be1 commit 13aabc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 13aabc3

Please sign in to comment.