Only enable double buffering for matrix portal due to memory issues on classic esp32

This commit is contained in:
Will Tatam
2024-07-17 10:23:50 +01:00
parent bb7b4b2f79
commit d1cf8a679f

View File

@@ -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;