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:
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