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:
38:3fe3bafbf0c7
Parent:
30:af38c80391cb
Child:
39:4b70d28cb273
Child:
40:05798eeadd02
--- a/render.h	Thu May 25 16:01:06 2017 +0000
+++ b/render.h	Thu May 25 19:54:51 2017 +0000
@@ -53,8 +53,8 @@
         // yp=320-(320*(ypos-3000))/58300;
         if(touching == 1) pc.printf("\txp=%d\t,\typo=%d\n\r", xp, yp);
         if(xp > 5 && yp > 50 && touching == 1) TFT.fillcircle(xp,yp, 2, color);
-        if(yp < 50) { // color buttons
-            sw = (int)xp / 50;
+        if(xp < 50) { // color buttons
+            sw = (int)yp / 50;
             switch(sw) {
                 case 0:
                     color = 0xf800;