mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat: the loading mark is three dots mid-screen, whatever the rotation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
39d29383ac
commit
ca6c2021d8
@@ -202,7 +202,11 @@ void setup() {
|
|||||||
#ifdef ST7789
|
#ifdef ST7789
|
||||||
disp->setTextSize(2);
|
disp->setTextSize(2);
|
||||||
#endif
|
#endif
|
||||||
disp->drawTextCentered(disp->width() / 2, 28, "Loading...");
|
// Three dots mid-screen: no words, so no orientation (the settings aren't read yet).
|
||||||
|
const int dot = disp->width() >= 240 ? 6 : 3;
|
||||||
|
disp->setColor(DisplayDriver::LIGHT);
|
||||||
|
for (int i = -1; i <= 1; i++)
|
||||||
|
disp->fillRect(disp->width() / 2 + i * 3 * dot - dot / 2, disp->height() / 2 - dot / 2, dot, dot);
|
||||||
disp->endFrame();
|
disp->endFrame();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user