From d7010c54d5ed1bff714d28d64fc94aaeda982237 Mon Sep 17 00:00:00 2001 From: Correl Date: Fri, 20 Jan 2023 17:22:32 -0500 Subject: [PATCH] Add startup text --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index ec604d5..b6220af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,6 +15,10 @@ void setup(void) { M5.begin(cfg); M5.Display.init(); M5.Display.setTextSize(3); + M5.Display.startWrite(); + M5.Display.setCursor(0, M5.Display.height() / 2); + M5.Display.printf("Starting up..."); + M5.Display.endWrite(); WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); @@ -40,6 +44,8 @@ void setup(void) { Serial.println("HTTP server started"); M5.Display.startWrite(); + M5.Display.clearDisplay(TFT_WHITE); + M5.Display.setCursor(0, 10); M5.Display.printf("SSID: %s\n", ssid); M5.Display.printf("IP Address: %s\n", WiFi.localIP().toString()); M5.Display.printf("\n\n");