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: main.cpp
- Revision:
- 15:5059751d2fa2
- Parent:
- 13:a10300cac491
- Child:
- 16:784a071dec0e
diff -r 27a488215184 -r 5059751d2fa2 main.cpp --- a/main.cpp Fri Jan 11 16:51:46 2013 +0000 +++ b/main.cpp Tue Mar 18 19:30:28 2014 +0000 @@ -38,6 +38,9 @@ { unsigned short LCD_id; TFT.claim(stdout); // send stdout to the TFT display + // Disable stdout buffering, allows us to omit \n with printf. + // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/ + setvbuf ( stdout , NULL , _IONBF , NULL ); TFT.background(Black); // set background to black TFT.foreground(White); // set chars to white @@ -152,7 +155,7 @@ { if (!TP._tp_irq) { - if (TP.Read_Ads7846()) + if (TP.Read_Ads7843()) { TP.getDisplayPoint() ; TP.TP_DrawPoint(TP.display.x,TP.display.y, Blue); @@ -198,6 +201,10 @@ TFT.foreground(White); // set chars to white TFT.claim(stdout); // send stdout to the TFT display + // Disable stdout buffering, allows us to omit \n with printf. + // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/ + setvbuf ( stdout , NULL , _IONBF , NULL ); + TFT.cls(); TFT.set_font((unsigned char*) Arial12x12); TFT.set_orientation(1); @@ -237,6 +244,10 @@ TFT.foreground(White); // set chars to white TFT.claim(stdout); // send stdout to the TFT display + // Disable stdout buffering, allows us to omit \n with printf. + // More info at http://www.cplusplus.com/reference/cstdio/setvbuf/ + setvbuf ( stdout , NULL , _IONBF , NULL ); + TFT.cls(); TFT.set_font((unsigned char*) Arial12x12); TFT.set_orientation(1); @@ -287,4 +298,4 @@ while(1); } -*/ \ No newline at end of file +*/