.
Dependencies: SPI_TFT_ILI9341
Fork of SeeedStudioTFTv2 by
Revision 14:9e54a2bb3f53, committed 2014-09-24
- Comitter:
- thijbens
- Date:
- Wed Sep 24 22:23:25 2014 +0000
- Parent:
- 13:362765fdf287
- Commit message:
- Lowered sensitivity
Changed in this revision
| SeeedStudioTFTv2.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SeeedStudioTFTv2.cpp Tue May 06 18:12:49 2014 +0000
+++ b/SeeedStudioTFTv2.cpp Wed Sep 24 22:23:25 2014 +0000
@@ -89,7 +89,7 @@
float z = 0;
z = (float)ay / ax / x / 2 * 0x10000;
#endif
- const int th = 8000;
+ const int th = 4000;
const int df = 100;
TOUCH touch;
if (x1 < th || x2 < th ||
@@ -102,6 +102,9 @@
} else {
touch = YES;
}
+ //int temp = p.x;
+ //p.x = p.y;
+ //p.y = temp;
//locate(0,50);
//printf("x: %6i y: %6i",p.x,p.y);
return touch;
