small Layout-change of OLED during OTA
This commit is contained in:
parent
c236322667
commit
925167ec3c
@ -169,7 +169,7 @@ void setup()
|
|||||||
ArduinoOTA.onStart([]()
|
ArduinoOTA.onStart([]()
|
||||||
{
|
{
|
||||||
u8x8.clearDisplay();
|
u8x8.clearDisplay();
|
||||||
u8x8.drawString(0, 0, "OTA-Update");
|
u8x8.drawString(0, 6, "OTA-Update");
|
||||||
u8x8.refreshDisplay(); });
|
u8x8.refreshDisplay(); });
|
||||||
|
|
||||||
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total)
|
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total)
|
||||||
@ -179,17 +179,17 @@ void setup()
|
|||||||
{
|
{
|
||||||
u8x8.clearDisplay();
|
u8x8.clearDisplay();
|
||||||
refreshed = true;
|
refreshed = true;
|
||||||
u8x8.drawString(0, 0, "OTA Upload");
|
u8x8.drawString(0, 6, "OTA Upload");
|
||||||
}
|
}
|
||||||
uint32_t percent = progress / (total / 100);
|
uint32_t percent = progress / (total / 100);
|
||||||
u8x8.setCursor(0, 1);
|
u8x8.setCursor(0, 7);
|
||||||
u8x8.printf("%d %%", percent);
|
u8x8.printf("%d %%", percent);
|
||||||
u8x8.refreshDisplay(); });
|
u8x8.refreshDisplay(); });
|
||||||
|
|
||||||
ArduinoOTA.onEnd([]()
|
ArduinoOTA.onEnd([]()
|
||||||
{
|
{
|
||||||
u8x8.clearDisplay();
|
u8x8.clearDisplay();
|
||||||
u8x8.drawString(0, 0, "OTA-Restart");
|
u8x8.drawString(0, 6, "OTA-Restart");
|
||||||
u8x8.refreshDisplay(); });
|
u8x8.refreshDisplay(); });
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user