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:
29:684e2a3e17b5
Parent:
19:4c30c3182e04
Child:
31:3255668e6b08
--- a/clocklogic.h	Thu May 25 12:57:32 2017 +0000
+++ b/clocklogic.h	Thu May 25 13:16:32 2017 +0000
@@ -2,12 +2,12 @@
     int x = readX();
     int y = readY();
     if (touching == 1) {
-        if (x > 0 && x < 50 && y > 0 & y < 50) // side button 1 
+        if (x > 0 && x < 50 && y > 0 & y < 50) // side button 1 (clock state)
         {
             //set desired state to 1 
             return 1;
         }
-        else if (x > 0 && x < 50 && y > 50 & y < 100) //side button 2
+        else if (x > 0 && x < 50 && y > 50 & y < 100) //side button 2 (change time)
         {
             //set desired state to 2 
             return 2;