Contains the main execution of the clock uses headers to import functions

Dependencies:   RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor

Fork of TFT_Mikroelectronika_IL9341_sketchpad by Oxford CWM Team

Revision:
31:3255668e6b08
Parent:
29:684e2a3e17b5
Child:
32:56f59b79720c
--- a/clocklogic.h	Thu May 25 13:24:26 2017 +0000
+++ b/clocklogic.h	Thu May 25 15:32:20 2017 +0000
@@ -2,6 +2,7 @@
     int x = readX();
     int y = readY();
     if (touching == 1) {
+       
         if (x > 0 && x < 50 && y > 0 & y < 50) // side button 1 (clock state)
         {
             //set desired state to 1 
@@ -69,7 +70,7 @@
         TFT.printf("%d",tm_c.sec);
         TFT.locate(60,140);
         TFT.set_font((unsigned char*) Arial12x12);
-        TFT.printf("%s",rtc.weekdayToString(tm_c.wday));
+        TFT.printf("%s",tm_c.wday);
         TFT.set_font((unsigned char*) Arial24x23);
         if (f_alarm) {
             TFT.locate(160,140);