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/SPI_TFT/SPI_TFT.cpp
- Revision:
- 5:781a72d380a1
- Parent:
- 2:d0acbd263ec7
- Child:
- 6:b547fb6c1095
diff -r 067633a7dfa5 -r 781a72d380a1 Mini-DK/SPI_TFT/SPI_TFT.cpp --- a/Mini-DK/SPI_TFT/SPI_TFT.cpp Thu Jan 03 16:28:16 2013 +0000 +++ b/Mini-DK/SPI_TFT/SPI_TFT.cpp Thu Jan 03 20:04:38 2013 +0000 @@ -14,7 +14,7 @@ SPI_TFT::SPI_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, const char *name) - : _spi(mosi, miso, sclk), _cs(cs), GraphicsDisplay(name) + : GraphicsDisplay(name), _spi(mosi, miso, sclk), _cs(cs) { char_x = 0; tft_reset(); @@ -236,7 +236,7 @@ } -void SPI_TFT::window(unsigned int x, unsigned int y, unsigned int w, unsigned int h) +void SPI_TFT::window(int x, int y, int w, int h) { unsigned int xw1, yh1; xw1 = x + w - 1;