From 688399660c3f3959c6eedbbe15af3fce55df9c1c Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:19:48 +0200 Subject: [PATCH] another mitigation for flickering in some setups, it helps to use the I2S#1 driver for the LED pin with most LEDs. --- wled00/bus_wrapper.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wled00/bus_wrapper.h b/wled00/bus_wrapper.h index a9bb6073..aada5eb7 100644 --- a/wled00/bus_wrapper.h +++ b/wled00/bus_wrapper.h @@ -933,9 +933,10 @@ class PolyBus { if (num > 9) return I_NONE; if (num > 7) offset = num -7; #else - // ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 as 5th bus, before going for RMT 5-8 + // ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 before going for RMT 5-8 if (num > 8) return I_NONE; - if (num == 2) offset = 2; // use I2S channel 2 as 3rd bus - seems to be a good compromise for performance + if (num == 2) offset = 2; // use I2S#1 as 3rd bus - seems to be a good compromise for performance + //if (num == 0) offset = 2; // un-comment to use I2S#1 as 1st bus - sometimes helps, if you experience flickering during Wifi or filesystem activity. #endif #endif switch (busType) {