diff --git a/include/Display_Graphic.h b/include/Display_Graphic.h index 591e73b8..13f6c62d 100644 --- a/include/Display_Graphic.h +++ b/include/Display_Graphic.h @@ -19,6 +19,7 @@ public: void loop(); bool enablePowerSafe = true; + bool enableScreensaver = true; bool showLogo = true; uint8_t contrast = 60; diff --git a/src/Display_Graphic.cpp b/src/Display_Graphic.cpp index 4b32a5d1..aa192b92 100644 --- a/src/Display_Graphic.cpp +++ b/src/Display_Graphic.cpp @@ -61,7 +61,7 @@ void DisplayGraphicClass::printText(const char* text, uint8_t line) uint16_t maxHeight = _display->getHeight(); // pxMovement +x (0 - 6 px) - uint8_t ex = (_mExtra % 7); + uint8_t ex = enableScreensaver ? (_mExtra % 7) : 0; // set the font size based on the display size switch (line) { @@ -138,7 +138,7 @@ void DisplayGraphicClass::loop() //=====> Logo and Lighting ========== // pxMovement +x (0 - 6 px) - uint8_t ex = (_mExtra % 7); + uint8_t ex = enableScreensaver ? (_mExtra % 7) : 0; if (isprod > 0) { _display->drawXBMP(5 + ex, 1, 8, 17, bmp_arrow); if (showLogo) {