This commit is contained in:
mrfaptastic 2019-07-29 13:45:06 +01:00
parent e22a1173ef
commit 194a5f0f31
2 changed files with 51 additions and 44 deletions

View file

@ -61,7 +61,7 @@ void RGB64x32MatrixPanel_I2S_DMA::configureDMA(int r1_pin, int g1_pin, int b1_
Serial.printf("lsbMsbTransitionBit of %d gives %d Hz refresh: \r\n", lsbMsbTransitionBit, actualRefreshRate);
if (actualRefreshRate > 100) // HACK Hard Coded: Minimum frame rate of 150
if (actualRefreshRate > min_refresh_rate) // HACK Hard Coded: 100
break;

View file

@ -180,6 +180,7 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
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.
}
@ -269,6 +270,11 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
brightness = b;
}
inline void setMinRefreshRate(int rr)
{
min_refresh_rate = rr;
}
// ------- PRIVATE -------
private:
@ -302,6 +308,7 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX {
int lsbMsbTransitionBit;
int refreshRate;
int brightness;
int min_refresh_rate;
}; // end Class header