Fork with support for ILI9341 controller
Dependents: CANary_9341 CANary
Fork of TOUCH_TFTx2 by
Revision 12:b7fb9d3ae5ea, committed 2013-03-03
- Comitter:
- TickTock
- Date:
- Sun Mar 03 18:06:29 2013 +0000
- Parent:
- 11:ce7ae1584207
- Child:
- 13:220e3da2dd00
- Commit message:
- Made calibration variables externally visible for saving to config file
Changed in this revision
TOUCH_TFTx2.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TOUCH_TFTx2.h Sun Mar 03 17:13:58 2013 +0000 +++ b/TOUCH_TFTx2.h Sun Mar 03 18:06:29 2013 +0000 @@ -37,6 +37,12 @@ * based on my SPI_TFT lib */ TOUCH_TFTx2(PinName xp, PinName xm, PinName yp, PinName ym,PinName mosi, PinName miso, PinName sclk, PinName cs0, PinName cs1, PinName reset,const char* name ="TFT"); + + unsigned short x0_off,y0_off; + unsigned short x0_pp,y0_pp; + unsigned short x1_off,y1_off; + unsigned short x1_pp,y1_pp; + unsigned short x_mid; /** calibrate the touch display * @@ -85,11 +91,6 @@ PinName ya; unsigned short x_a,y_a; - unsigned short x0_off,y0_off; - unsigned short x0_pp,y0_pp; - unsigned short x1_off,y1_off; - unsigned short x1_pp,y1_pp; - unsigned short x_mid; }; #endif \ No newline at end of file