synced time when on wifi

This commit is contained in:
Klemek
2021-09-20 22:25:34 +02:00
parent bed398b85e
commit b08a5db57f
5 changed files with 67 additions and 2 deletions
+2
View File
@@ -30,6 +30,8 @@ void WatchyTetris::drawWatchFace()
// Background
display.drawBitmap(0, 0, tetrisbg, DISPLAY_WIDTH, DISPLAY_HEIGHT, GxEPD_BLACK);
readWorldTime();
//Hour
display.drawBitmap(25, 20, tetris_nums_0[currentTime.Hour / 10], 40, 60, GxEPD_BLACK); //first digit
display.drawBitmap(75, 20, tetris_nums_1[currentTime.Hour % 10], 40, 60, GxEPD_BLACK); //second digit