Clear Clock Location Before Update Time

master
Dione Batista 2022-06-05 12:54:38 -03:00 committed by GitHub
parent 78438b6b88
commit 242dea3459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,12 @@ function DrawClock() {
m = d.getMinutes();
let time = h + ":" + ("0" + m).substr(-2);
g.setFont("7x11Numeric7Seg", 3);
g.clearRect(80, 57,170,96);
g.setColor(0, 255, 255);
g.drawRect(80, 57,170,96);
g.fillRect(80, 57,170,96);
g.setColor(0, 0, 0);
g.drawString(time, 70, 60);
g.setFont("8x12", 2);
g.drawString(DayMap[d.getDay()], 18, 130);