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:
15:5059751d2fa2
Parent:
13:a10300cac491
Child:
16:784a071dec0e
--- a/main.cpp	Fri Jan 11 16:51:46 2013 +0000
+++ b/main.cpp	Tue Mar 18 19:30:28 2014 +0000
@@ -38,6 +38,9 @@
 {
     unsigned short LCD_id;
     TFT.claim(stdout);        // send stdout to the TFT display
+    // Disable stdout buffering, allows us to omit \n with printf.
+    // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/
+    setvbuf ( stdout , NULL , _IONBF , NULL );
 
     TFT.background(Black);    // set background to black
     TFT.foreground(White);    // set chars to white
@@ -152,7 +155,7 @@
     {
         if (!TP._tp_irq)
         {
-            if (TP.Read_Ads7846())
+            if (TP.Read_Ads7843())
             {
                 TP.getDisplayPoint() ;
                 TP.TP_DrawPoint(TP.display.x,TP.display.y, Blue);
@@ -198,6 +201,10 @@
     TFT.foreground(White);    // set chars to white
 
     TFT.claim(stdout);        // send stdout to the TFT display
+    // Disable stdout buffering, allows us to omit \n with printf.
+    // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/
+    setvbuf ( stdout , NULL , _IONBF , NULL );
+
     TFT.cls();
     TFT.set_font((unsigned char*) Arial12x12);
     TFT.set_orientation(1);
@@ -237,6 +244,10 @@
     TFT.foreground(White);    // set chars to white
  
     TFT.claim(stdout);        // send stdout to the TFT display
+    // Disable stdout buffering, allows us to omit \n with printf.
+    // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/
+    setvbuf ( stdout , NULL , _IONBF , NULL );
+
     TFT.cls();
     TFT.set_font((unsigned char*) Arial12x12);
     TFT.set_orientation(1);
@@ -287,4 +298,4 @@
     
     while(1);
 }
-*/
\ No newline at end of file
+*/