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).
Diff: Mini-DK/Mini_DK.h
- Revision:
- 5:781a72d380a1
- Parent:
- 2:d0acbd263ec7
- Child:
- 7:ffdd4e75b366
--- a/Mini-DK/Mini_DK.h Thu Jan 03 16:28:16 2013 +0000 +++ b/Mini-DK/Mini_DK.h Thu Jan 03 20:04:38 2013 +0000 @@ -22,3 +22,12 @@ #define TP_SCK P0_7 #define TP_SDO P0_8 #define TP_SDI P0_9 + +#define SD_SDO P1_23 +#define SD_SDI P1_24 +#define SD_SCK P1_20 +#define SD_CS P1_21 +#define SD_CD P1_25 + +#define DISABLE_LCD_MISO (LPC_PINCON->PINSEL1) &= ~(0x02<<2); +#define ENABLE_LCD_MISO (LPC_PINCON->PINSEL1) |= (0x02<<2); \ No newline at end of file