Merge pull request #313 from wizmo2/rmt-esp32s3

Support for ESP32S3 RMT channel restrictions
This commit is contained in:
philippe44
2023-09-28 10:33:11 -07:00
committed by GitHub
6 changed files with 11 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ void led_vu_init()
led_strip_config.led_strip_working = heap_caps_malloc(strip.length * sizeof(struct led_color_t), MALLOC_CAP_8BIT);
led_strip_config.led_strip_showing = heap_caps_malloc(strip.length * sizeof(struct led_color_t), MALLOC_CAP_8BIT);
led_strip_config.gpio = strip.gpio;
led_strip_config.rmt_channel = rmt_system_base_channel++;
led_strip_config.rmt_channel = RMT_NEXT_TX_CHANNEL();
// initialize driver
bool led_init_ok = led_strip_init(&led_strip_config);