diff --git a/OLED_SSD1306.lua b/OLED_SSD1306.lua index 3db82ff..ffcbe80 100644 --- a/OLED_SSD1306.lua +++ b/OLED_SSD1306.lua @@ -32,16 +32,6 @@ function PageLoading(progress) Disp:updateDisplay(); end -function PageMainScene(wifiName,ipAddress,version) - Screen_WIFINAME = wifiName; - Screen_IPADDRESS = ipAddress; - Screen_VERSION = version; - Disp:clearBuffer(); - DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION) - Disp:updateDisplay(); - --Disp:sendBuffer(); -end - function DrawMainScene(wifiName,ipAddress,version) --Disp:setFont(u8g2.font_unifont_t_symbols); Disp:setFont(u8g2.font_unifont_t_symbols); @@ -65,6 +55,16 @@ function DrawLight(lightArr) end end +function PageMainScene(wifiName,ipAddress,version) + Screen_WIFINAME = wifiName; + Screen_IPADDRESS = ipAddress; + Screen_VERSION = version; + Disp:clearBuffer(); + DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION) + Disp:updateDisplay(); + --Disp:sendBuffer(); +end + function PageLight(lightArr) Disp:clearBuffer(); DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION);