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:
16:3cb9b1fbc039
Child:
17:356a299d3224
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/clocklogic.h	Thu May 25 09:48:31 2017 +0000
@@ -0,0 +1,46 @@
+int digital_clock_button_press(){
+    int x = readX();
+    int y = readY();
+    if (touching == 1) {
+        if (x > 0 && x < 50 && y > 0 & y < 50) // side button 1 
+        {
+            //set desired state to 1 
+            return 1;
+        }
+        else if (x > 0 && x < 50 && y > 50 & y < 100) //side button 2
+        {
+            //set desired state to 2 
+            return 2;
+        }
+        else if (x > 0 && x < 50 && y > 100 && y < 150) // side button 3 
+        {
+            //set desired state to 3
+            return 3;
+        }
+        else if (x > 0 && x < 50 && y > 150 && y < 200) // side button 4 
+        {
+            //set desired state to 4
+            return 4;
+        }button home
+        {
+            //set desired state to 0
+            return 0;
+        }
+        else if (x > 140 && x < 230 && y > ?? && y < ??) // alarm button on or off
+        {
+            //set desired state to 5
+            return 5;
+        }
+    }
+    return -1;
+}
+        
+    
+
+
+void clock()
+{
+    draw_state(1);
+    while (f_state == 1){
+        tm_c = tm_c.getTime()
+        if state 
\ No newline at end of file