aboutsummaryrefslogtreecommitdiff
path: root/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-08-18 14:32:51 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-08-18 14:32:51 +0100
commitf6584dd321fcf5e54ffd4429ab6b06ab7adb2b34 (patch)
treed14ffe1cded7971a850534dcb54e5943857d6e9f /ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
parentab641b964272d121c5f7db6212324f5bfbd1650b (diff)
Attempted clearScreen() syncronisation fix
No idea if this will work.
Diffstat (limited to 'ESP32-HUB75-MatrixPanel-I2S-DMA.cpp')
-rw-r--r--ESP32-HUB75-MatrixPanel-I2S-DMA.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
index 0570079..a9bc531 100644
--- a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
+++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
@@ -532,9 +532,9 @@ void IRAM_ATTR MatrixPanel_I2S_DMA::updateMatrixDMABuffer(int16_t x_coord, int16
/* Update the entire buffer with a single specific colour - quicker */
-void MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint8_t red, uint8_t green, uint8_t blue)
+bool MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint8_t red, uint8_t green, uint8_t blue)
{
- if ( !initialized ) return;
+ if ( !initialized ) return false;
/* https://ledshield.wordpress.com/2012/11/13/led-brightness-to-your-eye-gamma-correction-no/ */
#ifndef NO_CIE1931
@@ -585,6 +585,8 @@ void MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint8_t red, uint8_t green, uint
} while(matrix_frame_parallel_row); // end row iteration
} // colour depth loop (8)
+
+ return true;
} // updateMatrixDMABuffer (full frame paint)
/**