Browse Source

fixed handled bugs

master
DESKTOP-B25GA9E\W35 1 year ago
parent
commit
f49da44b2f
  1. 20
      OLED_SSD1306.lua

20
OLED_SSD1306.lua

@ -32,16 +32,6 @@ function PageLoading(progress) @@ -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) @@ -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);

Loading…
Cancel
Save