aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <gmail@qwe23.com>2019-07-30 23:22:06 +0100
committermrfaptastic <gmail@qwe23.com>2019-07-30 23:22:06 +0100
commit3293b46d667d60abf66755584635a8480f223645 (patch)
tree89b0d4f60bf8613c6b6244885732031c62595381
parentde92e05c6918b10584a4cacbf1a2a85128647f0d (diff)
Adjust default library brightness and refresh rate (memory usage).
To avoid it being so crashy for people testing this on setups with no caps.
-rw-r--r--ESP32-RGB64x32MatrixPanel-I2S-DMA.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
index cb31541..a0d7582 100644
--- a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
+++ b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
@@ -179,8 +179,8 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
: Adafruit_GFX(MATRIX_WIDTH, MATRIX_HEIGHT), doubleBuffer(_doubleBuffer) {
backbuf_id = 0;
- brightness = 60; // If you get ghosting... reduce brightness level. 60 seems to be the limit before ghosting on a 64 pixel wide physical panel for some panels
- min_refresh_rate = 100; // Probably best to leave as is unless you want to experiment. Framerate has an impact on brightness.
+ brightness = 16; // If you get ghosting... reduce brightness level. 60 seems to be the limit before ghosting on a 64 pixel wide physical panel for some panels
+ min_refresh_rate = 250; // Probably best to leave as is unless you want to experiment. Framerate has an impact on brightness and also power draw - voltage ripple.
}
@@ -244,14 +244,8 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
inline void flipDMABuffer()
{
- // Step 1. Bring backbuffer to the foreground (i.e. show it)
- //showDMABuffer();
-
- // Step 2. Copy foreground to backbuffer
- //matrixUpdateFrames[backbuf_id ^ 1] = matrixUpdateFrames[backbuf_id]; // copy currently being displayed buffer to backbuffer
-
- // Step 3. Change to this new buffer as the backbuffer
- backbuf_id ^=1; // set this now to the back_buffer to update (not displayed yet though)
+ // Flip to other buffer as the backbuffer. i.e. Graphic changes happen to this buffer (but aren't displayed until showDMABuffer())
+ backbuf_id ^=1;
#if SERIAL_DEBUG_OUTPUT
Serial.printf("Set back buffer to: %d\n", backbuf_id);