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:
203:704df2dbd3e6
Parent:
202:a22cbc04f332
Child:
205:f215dc32736b
--- a/RA8875_Touch.cpp	Thu Apr 30 13:51:32 2020 +0000
+++ b/RA8875_Touch.cpp	Sun May 17 14:07:46 2020 +0000
@@ -292,7 +292,7 @@
 {
     if (channel >= TouchChannels())
         channel = 0;
-    return touchInfo[channel].coordinates; // TranslateOrientation(touchInfo[channel].coordinates);
+    return touchInfo[channel].coordinates;
 }
 
 TouchCode_t RA8875::TouchPanelGet(point_t * TouchPoint)
@@ -312,31 +312,6 @@
     return t;
 }
 
-#if 0
-point_t RA8875::TranslateOrientation(point_t rawPoint)
-{
-    point_t newPoint = rawPoint;
-
-    switch (screen_orientation) {
-        default:
-        case rotate_0:
-        case rotate_180:
-            newPoint = rawPoint;
-            break;
-        case rotate_90:
-            newPoint.x = rawPoint.y;
-            newPoint.y = rawPoint.x;
-            break;
-        case rotate_270:
-            newPoint.x = width() - rawPoint.y;
-            newPoint.y = rawPoint.x;
-            break;
-    }
-    //INFO("Translate(%3d x %3d) => (%3d x %3d)", rawPoint.x, rawPoint.y, newPoint.x, newPoint.y);
-    return newPoint;
-}
-#endif
-
 // Below here are primarily "helper" functions. While many are accessible
 // to the user code, they usually don't need to be called.