From 87da7794785bf5a692d4029a9748a66ea0c8a7df Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Thu, 14 Apr 2022 21:31:31 -0700 Subject: [PATCH] Updated welcome screen w/ text, pages and logo Updated welcome screen w/ text, pages and logo --- src/graphics/Screen.cpp | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 73d77e77a..6c6be7580 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -172,16 +172,29 @@ static void drawSSLScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16 static void drawWelcomeScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y) { - display->setFont(FONT_SMALL); + if ((millis() / 10000) % 2) { + display->setFont(FONT_SMALL); - display->setTextAlignment(TEXT_ALIGN_CENTER); - display->drawString(64 + x, y, "Meshtastic :)"); + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->drawString(64 + x, y, "//\\ E S H T /\\ S T / C"); - display->setTextAlignment(TEXT_ALIGN_LEFT); + display->setTextAlignment(TEXT_ALIGN_LEFT); - display->drawString(x, y + FONT_HEIGHT_SMALL * 2 - 3, "Set the region using the"); - display->drawString(x, y + FONT_HEIGHT_SMALL * 3 - 3, "Meshtastic Android, iOS,"); - display->drawString(x, y + FONT_HEIGHT_SMALL * 4 - 3, "Flasher or CLI client."); + display->drawString(x, y + FONT_HEIGHT_SMALL * 2 - 3, "Set the region using the"); + display->drawString(x, y + FONT_HEIGHT_SMALL * 3 - 3, "Meshtastic Android, iOS,"); + display->drawString(x, y + FONT_HEIGHT_SMALL * 4 - 3, "Flasher or CLI client."); + } else { + display->setFont(FONT_SMALL); + + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->drawString(64 + x, y, "//\\ E S H T /\\ S T / C"); + + display->setTextAlignment(TEXT_ALIGN_LEFT); + + display->drawString(x, y + FONT_HEIGHT_SMALL * 2 - 3, "Visit meshtastic.org"); + display->drawString(x, y + FONT_HEIGHT_SMALL * 3 - 3, "for more information."); + display->drawString(x, y + FONT_HEIGHT_SMALL * 4 - 3, ""); + } #ifndef NO_ESP32 yield();