This is the David Smart RA8875 Library with mods for working with FRDM-K64F

Revision:
170:7e26d51bc48b
Parent:
168:37a0c4d8791c
Child:
171:f92c0f1f6db4
--- a/RA8875_Touch_GSL1680.cpp	Fri Mar 01 19:34:32 2019 +0000
+++ b/RA8875_Touch_GSL1680.cpp	Sat Mar 02 00:47:14 2019 +0000
@@ -14,7 +14,7 @@
 ///     found and interpreted and interface converted to align with this library.
 ///
 /// @caution It is probably clear that this represents a work in process, and is 
-///     in an attempt to make a working driver.
+///     an attempt to make a working driver.
 ///
 /// http://linux-sunxi.org/GSL1680 has some useful information, a bit of which
 /// is replicated here in case that site changes/disappears.
@@ -230,7 +230,7 @@
     // [8B] --+
     // ...    
     #define TD_SPACE (4 + 4 * GSL1680_TOUCH_POINTS)
-    if (m_irq->read() == 1) {
+    if (m_irq->read() == 0) {
         uint8_t touch_data[TD_SPACE];
 
         GSL1680_ReadRegU8(0x80, touch_data, TD_SPACE);
@@ -253,6 +253,7 @@
         }
     } else {
         numberOfTouchPoints = 0;
+        ERR("GSL1680 Touch - else path, unexpected.");
     }
     return numberOfTouchPoints;
 }