From d1cf8a679ff87da7f380f5629c12ffaf8a025ccb Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Wed, 17 Jul 2024 10:23:50 +0100 Subject: [PATCH] Only enable double buffering for matrix portal due to memory issues on classic esp32 --- wled00/bus_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index bb4c4bc8..84569577 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -490,7 +490,7 @@ void BusNetwork::cleanup() { BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) { - mxconfig.double_buff = true; // <------------- Turn on double buffer + mxconfig.double_buff = false; // default to off, known to cause issue with some effects but needs more memory fourScanPanel = nullptr; @@ -535,6 +535,8 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh USER_PRINTLN("MatrixPanel_I2S_DMA - Matrix Portal S3 config"); + mxconfig.double_buff = true; // <------------- Turn on double buffer + mxconfig.gpio.r1 = 42; mxconfig.gpio.g1 = 41; mxconfig.gpio.b1 = 40;