From aa6ebb6c2d70408e2edab0185d3324b6c791f44b Mon Sep 17 00:00:00 2001 From: Karo95 <66141698+Karo95@users.noreply.github.com> Date: Sat, 30 May 2020 20:51:30 +0200 Subject: [PATCH] Update DMD2.h fliping panels fliping panels --- DMD2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DMD2.h b/DMD2.h index 96bbd50..40ff722 100644 --- a/DMD2.h +++ b/DMD2.h @@ -132,6 +132,9 @@ class DMDFrame void drawBox(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, DMDGraphicsMode mode=GRAPHICS_ON); void drawFilledBox(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, DMDGraphicsMode mode=GRAPHICS_ON); void drawTestPattern(DMDTestPattern pattern); + + //flip panels + void setFlipPanels(bool flPanels){ boolFlipPanels = flPanels; } // Text primitives void selectFont(const uint8_t* font); @@ -176,6 +179,7 @@ class DMDFrame byte height_in_panels; // in panels uint8_t *font; + bool boolFlipPanels = false; inline size_t bitmap_bytes() { // total bytes in the bitmap