Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SeeedStudioTFTv2 by
Diff: SeeedStudioTFTv2.cpp
- Revision:
- 14:9e54a2bb3f53
- Parent:
- 10:b55a7f8d1145
- Child:
- 15:e1009b2567d8
--- 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;
