Pinky and the Brain / Mbed OS Clock

Dependencies:   SPI_TFT_ILI9341 TFT_fonts Adafruit_RTCLib RTC-DS1307 TSI

Revision:
18:2afeed90c051
Parent:
17:7ba6c8e4945b
Child:
19:450dbcda696e
--- a/Display.cpp	Thu May 25 03:03:20 2017 +0000
+++ b/Display.cpp	Thu May 25 03:30:05 2017 +0000
@@ -726,15 +726,14 @@
 
 void Display::drawAlarm(TimeClass *alarmTime)
 {
-    myTFT.fillrect(200, 165, myTFT.width(), myTFT.height(), Black);
+    myTFT.fillrect(160, 165, myTFT.width(), myTFT.height(), Black);
     myTFT.foreground(Red);
     myTFT.set_font((unsigned char*)Arial24x23);
-    myTFT.locate(200,200);
+    myTFT.locate(160,200);
     //LOG("OUTDATE\r\n");
     char buf[15];
     sprintf(buf, "%02d:%02d %s\n", alarmTime->hour == 12 ? 12 : alarmTime->hour%12, alarmTime->minute, alarmTime->hour>=12 ? "p.m." : "a.m.");
-    myTFT.locate(20,210);
-    text(200, 200, buf);
+    text(160, 200, buf);
     myTFT.set_font((unsigned char*)Arial12x12);
     myTFT.foreground(White);
 }