Library for SeeedStudioTFTv2 2.8 Zoll 240x360 pixel touch SD card
Dependencies: SPI_TFT_ILI9341
Dependents: Seeed_TFT_Touch_Shield Seeed_TFT_Touch_Shield Adafruit_TFT_Touch_Shield UIT2_SpectrumAnalyzer ... more
Fork of SeeedStudioTFTv2 by
Diff: touch_tft.h
- Revision:
- 3:1e05b273008a
- Parent:
- 1:1745fdf054b5
--- a/touch_tft.h Sun Sep 04 21:23:31 2011 +0000
+++ b/touch_tft.h Fri Oct 18 18:29:09 2013 +0000
@@ -15,7 +15,7 @@
#define MBED_TOUCH_H
#include "mbed.h"
-#include "SPI_TFT.h"
+#include "SPI_TFT_ILI9341.h"
struct point{
unsigned short x;
@@ -36,7 +36,7 @@
* // the TFT is connected to SPI pin 5-7
* // the touch is connected to 19,20,16,17
*
- * touch_tft tt(p19,p20,p16,p17,p5, p6, p7, p8, p15,"TFT"); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset
+ * touch_tft tt(p19,p20,p16,p17, &tft); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset
*
* int main() {
* point p;
@@ -58,7 +58,7 @@
* }
* @endcode
*/
-class touch_tft : public SPI_TFT{
+class touch_tft : public SPI_TFT_ILI9341 {
public:
/** create a TFT with touch object connected to the pins:
*
@@ -71,7 +71,7 @@
* @param reset pin connected to RESET of display
* based on my SPI_TFT lib
*/
- touch_tft(PinName xp, PinName xm, PinName yp, PinName ym,PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset,const char* name ="TFT");
+ touch_tft(PinName xp, PinName xm, PinName yp, PinName ym,PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, PinName dc, const char* name ="TFT");
/** calibrate the touch display
*

Seeed Studio 2.8'' TFT Touch Shield V2.0
Adafruit 2.8" TFT Touch Shield v2