Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.

Dependents:   FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo SignalGenerator ... more

Fork of SPI_TFT by Peter Drescher

See Components - RA8875 Based Display

Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.

Offline Help Manual (Windows chm)

/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)

Revision:
166:53fd4a876dac
Parent:
165:695c24cc5197
Child:
167:8aa3fb2a5a31
--- a/RA8875_Touch.cpp	Sun Feb 24 00:40:00 2019 +0000
+++ b/RA8875_Touch.cpp	Sun Feb 24 19:28:26 2019 +0000
@@ -134,7 +134,7 @@
 int RA8875::TouchChannels(void)
 {
     if (useTouchPanel == TP_GSL1680) {
-        return 10;  // based on TP_GSL1680 hardware
+        return GSL1680_TOUCH_POINTS;  // based on TP_GSL1680 firmware
     } else if (useTouchPanel == TP_FT5206) {
         return 5;   // based on the FT5206 hardware
     } else if (useTouchPanel == TP_RES) {
@@ -345,6 +345,26 @@
     return ts;
 }
 
+uint8_t RA8875::TouchID(uint8_t channel) 
+{
+    if (channel >= TouchChannels())
+        channel = 0;
+    return touchInfo[channel].touchID; 
+}
+
+TouchCode_t RA8875::TouchCode(uint8_t channel) 
+{ 
+    if (channel >= TouchChannels())
+        channel = 0;
+    return touchInfo[channel].touchCode; 
+}
+
+point_t RA8875::TouchCoordinates(uint8_t channel)
+{
+    if (channel >= TouchChannels())
+        channel = 0;
+    return touchInfo[channel].coordinates; 
+}
 
 TouchCode_t RA8875::TouchPanelGet(point_t * TouchPoint)
 {