about summary refs log tree commit diff
path: root/examples/AnimatedGIFPanel
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 10:21:31 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 10:21:31 +0100
commitb504f6292de8a07f155d42f650e535ef901754c6 (patch)
treee208733aec439bf4bebb4fb07a3a30682dc1999b /examples/AnimatedGIFPanel
parentd48542d599a52b2a4c91b1462ce98f9e74b6f9da (diff)
Minor update
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);