ILI9325 based GR_SAKURA LCD Shield

Dependencies:   TFTLCD_8bit mbed-src mbed

Revision:
7:8ba4518ba2f8
Parent:
6:f7d4a6a500f3
Child:
8:d4fc30048585
--- a/main.cpp	Wed Dec 03 16:57:50 2014 +0000
+++ b/main.cpp	Wed Dec 03 17:09:27 2014 +0000
@@ -9,6 +9,10 @@
 //CS, RESET, RS, WR
 int main()
 {
+    int ii,height,width;
+    
+    height = lcd.GetHeight();
+    width = lcd.GetWidth();
     // initialize display - place it in standard portrait mode and set background to black and
     //                      foreground to white color.
     lcd.Initialize();
@@ -17,9 +21,8 @@
     // print something on the screen
     lcd.Print( "Hello, World!", CENTER, 50); // align text to center horizontally and use starndard colors
 
-
-
-/*    
+    wait(2);
+   
     lcd.ClearScreen();
 
 //    for(ii=0;ii<240;ii++)
@@ -32,13 +35,16 @@
 //        lcd.DrawLine(0, 0, 320, ii,COLOR_GREEN);
         ii = ii+10;    
     }
+    wait(2);
 
     lcd.DrawCircle(height/4, width/4, 20, COLOR_GREEN);
+    wait(2);
 
     lcd.FillCircle(height/2, width/2, 50, COLOR_GREEN);
+    wait(2);
 
     lcd.FillTriangle(height/4, width/4,(height/4)+20, (width/4)+40,(height/4)-20, (width/4)+40, COLOR_RED);
-*/
+
 
     while ( 1 ) { }
 }
\ No newline at end of file