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:
186:910fc2335c45
Parent:
183:808f272e481e
Child:
190:3132b7dfad82
--- a/RA8875.cpp	Mon Aug 26 12:45:20 2019 +0000
+++ b/RA8875.cpp	Wed Aug 28 17:17:56 2019 +0000
@@ -1124,7 +1124,7 @@
     RetCode_t r;
     
     screen_orientation = angle;
-    fncr1Val &= ~0x10;      // remove the old direction bit
+    fncr1Val &= ~0x10;      // remove the old font rotation bit
     dpcrVal &= ~0x0C;       // remove the old scan direction bits
     switch (angle) {
         case RA8875::normal:
@@ -1166,7 +1166,7 @@
             vScale >= 1 && vScale <= 4) {
         uint8_t fncr1Val = ReadCommand(0x22);
         
-        fncr1Val &= ~0x10;      // do not disturb the rotate flag
+        fncr1Val &= 0x10;      // remove all except the font rotation bit
         if (alignment == align_full)
             fncr1Val |= 0x80;
         if (fillit == NOFILL)