FT6206 Library for Adafruit 2.8" TFT Touch Shield for Arduino w/Capacitive Touch
Dependents: ArchPro_TFT ATT_AWS_IoT_demo_v06 ArchPro_TFT TermProject
Diff: FT6206.h
- Revision:
- 7:3896a0daed43
- Parent:
- 6:eb7a74dc809f
- Child:
- 8:b6e95d327cd3
--- a/FT6206.h Tue Mar 24 01:21:55 2015 +0000 +++ b/FT6206.h Tue Mar 24 01:23:19 2015 +0000 @@ -66,8 +66,8 @@ int main() { while(1) { -// if (FT6206.touched()) { - if (FT6206.dataReceived()) { + TS_Point p; + if (FT6206.getTouchPoint(p)) { // Retrieve a point TS_Point p = FT6206.getPoint(); printf("Touch %3d %3d\n", p.x, p.y);