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

Revision:
6:eb7a74dc809f
Parent:
5:652684757b6b
Child:
7:3896a0daed43
--- a/FT6206.cpp	Mon Mar 23 22:12:24 2015 +0000
+++ b/FT6206.cpp	Tue Mar 24 01:21:55 2015 +0000
@@ -127,6 +127,15 @@
     return false;
 }
 
+bool FT6206::getTouchPoint(TS_Point &p) {
+    if (dataReceived()) {
+        // Retrieve a point  
+        p = getPoint();
+        return true;
+    }
+    return false;   
+}
+
 /*****************************/
 
 void FT6206::readData(uint16_t *x, uint16_t *y) {