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:
7:ffdd4e75b366
Parent:
6:b547fb6c1095
--- a/Mini-DK/SPI_TFT/SPI_TFT.cpp	Thu Jan 03 21:24:05 2013 +0000
+++ b/Mini-DK/SPI_TFT/SPI_TFT.cpp	Fri Jan 04 09:52:16 2013 +0000
@@ -1,8 +1,17 @@
-/* mbed library for 240*320 pixel TFT with ILI9320 LCD Controller
- * Rewrite from Peter Drescher code - http://mbed.org/cookbook/SPI-driven-QVGA-TFT
- *
- * TODO : BMP routine
- */
+/**************************************************************************************************
+ *****                                                                                        *****
+ *****  Name: SPI_TFT.cpp                                                                     *****
+ *****  Ver.: 1.0                                                                             *****
+ *****  Date: 04/01/2013                                                                      *****
+ *****  Auth: Frank Vannieuwkerke                                                             *****
+ *****        Erik Olieman                                                                    *****
+ *****  Func: library for 240*320 pixel TFT with ILI9320 LCD Controller                       *****
+ *****                                                                                        *****
+ *****  Rewrite from Peter Drescher code - http://mbed.org/cookbook/SPI-driven-QVGA-TFT       *****
+ *****                                                                                        *****
+ **************************************************************************************************/
+
+// TODO : BMP routine
 
 
 
@@ -33,23 +42,12 @@
     else return 240;
 }
 
-//
 void SPI_TFT::set_orientation(unsigned int o)
 {
     orientation = o;
     WindowMax();
 }
 
-// ILI9320
-// Orientation is only set before a window command (registers 0x50..0x53)
-// reg 03h (Entry Mode) : BGR = 1 - ORG = 1 - ID0, ID1 and AM are set according to the orientation variable.
-// IMPORTANT : when ORG = 1, the GRAM writing direction follows the orientation (ID0, ID1, AM bits)
-//             AND we need to use the window command (reg 50h..53h) to write to an area on the display
-//             because we cannot change reg 20h and 21h to set the GRAM address (they both remain at 00h).
-//             This means that the pixel routine does not work when ORG = 1.
-//             Routines relying on the pixel routine first need to set reg 03h = 0x1030
-//             (cls, circle and line do so) AND need to write the data according to the orientation variable.
-
 void SPI_TFT::mod_orientation(void)
 {
     switch (orientation)