From cf2ff1e515d65a616adca0c398f942c84ef96482 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Mon, 23 Oct 2023 22:22:12 +0100 Subject: [PATCH] Working SmartMatrix outout --- wled00/bus_manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index be0b9a35..4f528ab8 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -482,6 +482,7 @@ BusSmartMatrix::BusSmartMatrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh SMARTMATRIX_ALLOCATE_BUFFERS(smartMatrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions); SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions); + this->_len = (kMatrixWidth * kMatrixHeight); smartMatrix.addLayer(&backgroundLayer); smartMatrix.setBrightness(brightness); @@ -490,9 +491,7 @@ BusSmartMatrix::BusSmartMatrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh smartMatrix.setBrightness(125); // TODO - hard code for now - rgb24* smBuffer = backgroundLayer.backBuffer(); - - this->buffer = smBuffer; + this->buffer = backgroundLayer.backBuffer(); backgroundLayer.swapBuffers(true);