bla
Fork of SeeedStudioTFTv2 by
Diff: SeeedStudioTFTv2.h
- Revision:
- 14:5421b9d45c5d
- Parent:
- 8:36ea6be5182e
--- a/SeeedStudioTFTv2.h Tue May 06 18:12:49 2014 +0000 +++ b/SeeedStudioTFTv2.h Thu Apr 05 09:40:54 2018 +0000 @@ -43,10 +43,12 @@ * @param reset pin connected to RESET of display * based on my SPI_TFT lib */ - SeeedStudioTFTv2(PinName xp, PinName xm, PinName yp, PinName ym, + SeeedStudioTFTv2(PinName xp, PinName xm, PinName yp, PinName ym, PinName mosi, PinName miso, PinName sclk, - PinName csTft, PinName dcTft, PinName blTft, - PinName csSd); + PinName csTft, PinName dcTft, PinName blTft); + + typedef enum { YES, MAYBE, NO } TOUCH; + TOUCH getTouch(point& p); void setBacklight(bool enabled); @@ -78,8 +80,7 @@ PinName _yp; DigitalOut bl; - typedef enum { YES, MAYBE, NO } TOUCH; - TOUCH getTouch(point& p); + int readTouch(PinName p, PinName m, PinName a, PinName i); int x_off,y_off;