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/TouchADS7843/Touch.cpp
- Revision:
- 7:ffdd4e75b366
- Parent:
- 5:781a72d380a1
--- a/Mini-DK/TouchADS7843/Touch.cpp Thu Jan 03 21:24:05 2013 +0000 +++ b/Mini-DK/TouchADS7843/Touch.cpp Fri Jan 04 09:52:16 2013 +0000 @@ -1,5 +1,17 @@ -// Code based on Carlos E. Vidales tutorial : How To Calibrate Touch Screens -// http://www.embedded.com/design/configurable-systems/4023968/How-To-Calibrate-Touch-Screens +/************************************************************************************************** + ***** ***** + ***** Name: Touch.cpp ***** + ***** Ver.: 1.0 ***** + ***** Date: 04/01/2013 ***** + ***** Auth: Frank Vannieuwkerke ***** + ***** Erik Olieman ***** + ***** Func: Touch driver for use with ADS7843 ***** + ***** ***** + ***** Code based on Carlos E. Vidales tutorial : ***** + ***** How To Calibrate Touch Screens ***** + ***** www.embedded.com/design/configurable-systems/4023968/How-To-Calibrate-Touch-Screens ***** + ***** ***** + **************************************************************************************************/ #include "Touch.h" #include "mbed.h" @@ -56,7 +68,6 @@ Temp >>= 3; Temp &= 0xfff; Temp /= 4; // Scaling : return value range must be between 0 and 1024 -// Temp = (((msb & 0x7f) <<8) | lsb) >> 3; // 12 bit return(Temp); }