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: SeeedStudioTFTv2.h
- Revision:
- 5:366bdc7a8315
- Parent:
- 4:4542d1ff81e4
- Child:
- 7:dfd69b3be5b6
diff -r 4542d1ff81e4 -r 366bdc7a8315 SeeedStudioTFTv2.h
--- a/SeeedStudioTFTv2.h Sat Oct 19 20:51:48 2013 +0000
+++ b/SeeedStudioTFTv2.h Sat Oct 19 21:07:54 2013 +0000
@@ -17,7 +17,7 @@
#include "mbed.h"
#include "SPI_TFT_ILI9341.h"
#ifdef USE_SDCARD
-#include "SDFileSystem.h"
+#include "SDFileSystem.h" // import the SDFileSystem library
#endif
struct point {
@@ -47,6 +47,8 @@
PinName csTft, PinName rstTft, PinName dcTft, PinName blTft,
PinName csSd);
+ void setBacklight(bool enabled);
+
/** calibrate the touch display
*
* User is asked to touch on two points on the screen
@@ -73,6 +75,7 @@
PinName _ym;
PinName _xp;
PinName _yp;
+ DigitalOut bl;
typedef enum { YES, MAYBE, NO } TOUCH;
TOUCH getTouch(point& p);

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