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:
41:3f2e75e7fbeb
Parent:
40:05798eeadd02
Parent:
39:4b70d28cb273
--- a/render.h	Fri May 26 08:31:04 2017 +0000
+++ b/render.h	Fri May 26 08:32:45 2017 +0000
@@ -5,9 +5,9 @@
 #include "Arial28x28.h"
 #include "font_big.h"
 
-
+//the functions to draw buttons , the analog clock and whiteboard
 
-void drawbuttons()
+void drawbuttons()  //draw buttons
 {
     TFT.fillrect(0, 0, 50, 50, Red);
     TFT.fillrect(0, 50, 50, 100, Green);
@@ -21,8 +21,8 @@
     TFT.rect(0, 150, 50, 200, White);
     TFT.rect(0, 200, 50, 250, White);
 }
-void draw_clockface(int x0, int y0, int r, int markerlength, int color)
-{
+void draw_clockface(int x0, int y0, int r, int markerlength, int color) // final version for analog clock
+{ 
     TFT.circle(x0, y0, r, White);
     for ( int n = 0; n < 13; n++) {
       int x1, y1, x2, y2= 0;
@@ -34,7 +34,7 @@
       TFT.line(x1, y1, x2, y2, color);
     }
 }
-void whiteboard()
+void whiteboard() //white board fuction
 {   
     TFT.cls();
     int color = 0;
@@ -55,7 +55,7 @@
         if(xp > 5 && yp > 50 && touching == 1) TFT.fillcircle(xp,yp, 2, color);
         if(xp < 50) { // color buttons
             sw = (int)yp / 50;
-            switch(sw) {
+            switch(sw) { // changing colors
                 case 0:
                     color = 0xf800;
                     break;