From a8fd9abd496ba6768f5932e462a7397fea2d6c73 Mon Sep 17 00:00:00 2001 From: Elizabeth Cray Date: Thu, 8 Jun 2023 00:01:15 -0400 Subject: [PATCH] Prepare for adding socket connection --- src/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6b85196..dd28a3f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,11 +16,19 @@ #include "config.h" U8G2_SSD1309_128X64_NONAME2_1_4W_HW_SPI disp(U8G2_R0, /* cs=*/ 15, /* dc=*/ 2, /* reset=*/ 16); -double progress = 0; + +// Socket data variables +double progress = 0.0; +uint64 timeRemaining = 0; +uint64 timeElapsed = 0; +uint8 hotendTemp = 0; +uint8 buildPlateTemp = 0; // TODO: // 1. Add WPA2 and connect QR to display // "WIFI:S:"+ssid+";T:WPA;P:"+pass+";;" +// 2. Use config.h for printer spec for now +// 3. Add webfig menu for selecting a printer void statusMsg(String msg){ disp.firstPage();