From f4c1e163af482356aad68aefd097f8638808dd48 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 19 Jan 2023 23:00:07 -0500 Subject: [PATCH] Display WiFi connection details --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index f412044..e889e23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,7 @@ const char* ssid = "REPLACE_WITH_YOUR_SSID"; const char* password = "REPLACE_WITH_YOUR_PASSWORD"; AsyncWebServer server(80); +M5EPD_Canvas canvas(&M5.EPD); void setup(void) { Serial.begin(115200); @@ -38,6 +39,12 @@ void setup(void) { M5.TP.SetRotation(90); M5.EPD.SetRotation(90); M5.EPD.Clear(true); + M5.RTC.begin(); + canvas.createCanvas(400, 300); + canvas.setTextSize(3); + canvas.drawString(ssid, 0, 0); + canvas.drawString(WiFi.localIP().toString(), 0, 20); + canvas.pushCanvas(0, 0, UPDATE_MODE_DU4); } void loop()