aboutsummaryrefslogtreecommitdiff
path: root/examples/AnimatedGIFPanel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/AnimatedGIFPanel')
-rw-r--r--examples/AnimatedGIFPanel/AnimatedGIFPanel.ino4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino b/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
index d4db9bf..8f4abb1 100644
--- a/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
+++ b/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
@@ -201,10 +201,14 @@ void setup() {
Serial.println("SPIFFS Mount Failed");
}
+ /* setPanelBrightness should be called before .begin() */
+ /* setMinRefreshRate must be called before .begin() */
dma_display.setPanelBrightness(32);
dma_display.setMinRefreshRate(200);
dma_display.begin();
+
+ /* all other pixel drawing functions can only be called after .begin() */
dma_display.fillScreen(dma_display.color565(0, 0, 0));
gif.begin(LITTLE_ENDIAN_PIXELS);