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

Dependencies:   Mini-DK mbed SDFileSystem

WARNING: filetoflash (SD to CPU flash)

The SPI_TFT library called from Mini-DK.lib contains an option to copy an image from the SD card to the CPU flash memory. This allows you to use an image as background without speed loss when writing other text and graphics.

By default, this option is enabled.

It can be disabled by uncommenting the #define mentioned below in Mini_DK.h:

#define NO_FLASH_BUFFER

Since the flash memory has limited write endurance, DO NOT use this feature when you intend to read multiple images from the SD card (eg: when used as a photo frame).

Files at this revision

API Documentation at this revision

Comitter:
frankvnk
Date:
Tue Mar 18 19:30:28 2014 +0000
Parent:
14:27a488215184
Child:
16:784a071dec0e
Commit message:
New ILI9320 library.\\
; Added \\

Changed in this revision

Mini-DK.lib Show annotated file Show diff for this revision Revisions of this file
graphics.c Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Mini-DK.lib	Fri Jan 11 16:51:46 2013 +0000
+++ b/Mini-DK.lib	Tue Mar 18 19:30:28 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/frankvnk/code/Mini-DK/#6816fa47b39e
+http://mbed.org/users/frankvnk/code/Mini-DK/#5feb12e3801f
--- a/graphics.c	Fri Jan 11 16:51:46 2013 +0000
+++ b/graphics.c	Tue Mar 18 19:30:28 2014 +0000
@@ -1,4 +1,4 @@
-unsigned char p1[] = {
+const unsigned char p1[] = {
     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 
     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 
     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 
--- 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
+*/