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).

Revision:
4:067633a7dfa5
Parent:
3:fb4d62b5ffb3
Child:
6:b547fb6c1095
--- a/main.cpp	Thu Jan 03 16:16:24 2013 +0000
+++ b/main.cpp	Thu Jan 03 16:28:16 2013 +0000
@@ -14,7 +14,6 @@
 
 int main()
 {
-    unsigned char Ads7846_status;
     unsigned short LCD_id;
     TFT.claim(stdout);        // send stdout to the TFT display
 
@@ -133,8 +132,7 @@
     {
         if (!TP._tp_irq)
         {
-            Ads7846_status = TP.Read_Ads7846();
-            if (Ads7846_status)
+            if (TP.Read_Ads7846())
             {
                 TP.getDisplayPoint() ;
                 TP.TP_DrawPoint(TP.display.x,TP.display.y, Blue);