LPC1768 Mini-DK board with 2.8" SPI TFT and SPI touch

Dependencies:   Mini-DK SDFileSystem mbed

Fork of LPC1768_Mini-DK by Frank Vannieuwkerke

Revision:
6:b547fb6c1095
Parent:
4:067633a7dfa5
Child:
7:ffdd4e75b366
--- a/main.cpp	Thu Jan 03 20:04:38 2013 +0000
+++ b/main.cpp	Thu Jan 03 21:24:05 2013 +0000
@@ -27,16 +27,16 @@
     TFT.set_font((unsigned char*) Arial12x12);
     TFT.set_orientation(0);
     TFT.locate(0,0);
-    printf("  Hello Mbed 0");
+    TFT.printf("  Hello Mbed 0");
     TFT.set_orientation(1);
     TFT.locate(0,0);
-    printf("  Hello Mbed 1");
+    TFT.printf("  Hello Mbed 1");
     TFT.set_orientation(2);
     TFT.locate(0,0);
-    printf("  Hello Mbed 2");
+    TFT.printf("  Hello Mbed 2");
     TFT.set_orientation(3);
     TFT.locate(0,0);
-    printf("  Hello Mbed 3");
+    TFT.printf("  Hello Mbed 3");
     TFT.set_orientation(1);
     TFT.set_font((unsigned char*) Arial24x23);
     TFT.locate(50,100);
@@ -106,7 +106,7 @@
     TFT.locate(10,10);
     TFT.printf("RGB color wheel (2x)");
 
-    uint8_t r = 255, g = 0,  b = 0, step = 5, i;
+    uint8_t r = 255, g = 0,  b = 0, step = 1, i;
     for (i=0;i<2;i++)
     {
         for(;g<255;g+=step) {TFT.fillrect(70,110,100,100,RGB565CONVERT(r, g, b));}      // Cycle from FF0000 to FFFF00 : red to yellow