Working on general setpage rendering 15:00 wed

Dependencies:   mbed

Revision:
1:1169d3c7571e
Parent:
0:bb7ae3488b3f
Child:
2:cfa689f0ef30
--- a/main.cpp	Wed May 24 13:59:55 2017 +0000
+++ b/main.cpp	Wed May 24 14:15:24 2017 +0000
@@ -18,15 +18,17 @@
     TFT.rect(0,100,50,200,White);   //outlines
     TFT.rect(0,200,50,240,White);   //outlines
     
-
-    TFT.set_font((unsigned char*) Arial28x28); //set alarm hour
-    TFT.locate(50,30);
-    TFT.printf("Alarm_Hour");
+    TFT.set_font((unsigned char*) Arial12x12); //set alarm button
+    TFT.locate(0,40);
+    TFT.printf("Set Alarm");
 
-    TFT.set_font((unsigned char*) Arial28x28); //set alarm hour
-    TFT.locate(50,30);
-    TFT.printf("Alarm_Hour");
+     //set time button
+    TFT.locate(0,140);
+    TFT.printf("Set Time");
 
+     //home button
+    TFT.locate(0,210);
+    TFT.printf("Home");
 
 }
 
@@ -36,28 +38,32 @@
     rect(50,100,320,200,white); //set time box
     rect(50,200,320,240,white); //set date box
     
+    TFT.set_font((unsigned char*) Arial12x12); //set alarm title
+    TFT.locate(105,0);
+    TFT.printf("Set Alarm");
+
+    TFT.set_font((unsigned char*) Arial28x28); //set alarm hour
+    TFT.locate(50,30);
+    TFT.printf("Alarm_Hour");
+
+     //set alarm mins
+    TFT.locate(230,30);
+    TFT.printf("Alarm_Min");
+    
+    TFT.set_font((unsigned char*) Arial12x12); //set time title
+    TFT.locate(105,100);
+    TFT.printf("Set Time");
+
+    TFT.set_font((unsigned char*) Arial28x28); //set time hour
+    TFT.locate(50,130);
+    TFT.printf("Time_Hour");
+
+    //set time mins
+    TFT.locate(230,130);
+    TFT.printf("Alarm_Min");
+
+
+    
 }
 
 
-//first show the 4 directions
-    TFT.set_orientation(0);
-    TFT.background(Black);
-    TFT.cls();
- 
-    TFT.set_font((unsigned char*) Arial12x12);
-    TFT.locate(0,0);
-    printf("  Hello Mbed 0");
- 
-    TFT.set_orientation(1);
-    TFT.locate(0,0);
-    printf("  Hello Mbed 1");
-    TFT.set_orientation(2);
-    TFT.locate(0,0);
-    printf("  Hello Mbed 2");
-    TFT.set_orientation(3);
-    TFT.locate(0,0);
-    printf("  Hello Mbed 3");
-    TFT.set_orientation(1);
-    TFT.set_font((unsigned char*) Arial24x23);
-    TFT.locate(50,100);
-    TFT.printf("TFT orientation");
\ No newline at end of file