diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-08-14 10:21:31 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-08-14 10:21:31 +0100 |
| commit | b504f6292de8a07f155d42f650e535ef901754c6 (patch) | |
| tree | e208733aec439bf4bebb4fb07a3a30682dc1999b /examples/AnimatedGIFPanel | |
| parent | d48542d599a52b2a4c91b1462ce98f9e74b6f9da (diff) | |
Minor update
Diffstat (limited to 'examples/AnimatedGIFPanel')
| -rw-r--r-- | examples/AnimatedGIFPanel/AnimatedGIFPanel.ino | 4 |
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); |
