Adjust default library brightness and refresh rate (memory usage).
To avoid it being so crashy for people testing this on setups with no caps.
This commit is contained in:
parent
de92e05c69
commit
3293b46d66
1 changed files with 4 additions and 10 deletions
|
@ -179,8 +179,8 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
|
||||||
: Adafruit_GFX(MATRIX_WIDTH, MATRIX_HEIGHT), doubleBuffer(_doubleBuffer) {
|
: Adafruit_GFX(MATRIX_WIDTH, MATRIX_HEIGHT), doubleBuffer(_doubleBuffer) {
|
||||||
|
|
||||||
backbuf_id = 0;
|
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
|
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 = 100; // Probably best to leave as is unless you want to experiment. Framerate has an impact on brightness.
|
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()
|
inline void flipDMABuffer()
|
||||||
{
|
{
|
||||||
// Step 1. Bring backbuffer to the foreground (i.e. show it)
|
// Flip to other buffer as the backbuffer. i.e. Graphic changes happen to this buffer (but aren't displayed until showDMABuffer())
|
||||||
//showDMABuffer();
|
backbuf_id ^=1;
|
||||||
|
|
||||||
// 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)
|
|
||||||
|
|
||||||
#if SERIAL_DEBUG_OUTPUT
|
#if SERIAL_DEBUG_OUTPUT
|
||||||
Serial.printf("Set back buffer to: %d\n", backbuf_id);
|
Serial.printf("Set back buffer to: %d\n", backbuf_id);
|
||||||
|
|
Loading…
Reference in a new issue