projets de S3 s4 2021
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341
Diff: touch.h
- Revision:
- 4:87b40e5986e7
- Parent:
- 3:1396bac4ae71
- Child:
- 5:80791250acb2
diff -r 1396bac4ae71 -r 87b40e5986e7 touch.h --- a/touch.h Thu Jan 10 01:14:40 2019 +0000 +++ b/touch.h Thu Jan 10 03:48:37 2019 +0000 @@ -1,14 +1,14 @@ #include "mbed.h" #include "stdio.h" - +//int readTouch(PinName a, PinName i, PinName n, PinName m); class TouchScreen { - + PinName yp, ym, xm, xp; public: TouchScreen(PinName xp, PinName yp, PinName xm, PinName ym); - int readTouch(PinName p, PinName m, PinName a, PinName i); + int readTouch(PinName a, PinName i, PinName n, PinName m); //bool isTouching(void); //Point getPoint(Point p); };