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:
67:9f834f0ff97d
Parent:
66:468a11f05580
Child:
68:ab08efabfc88
--- a/RA8875.cpp	Sun Aug 31 14:37:37 2014 +0000
+++ b/RA8875.cpp	Sun Aug 31 14:47:59 2014 +0000
@@ -244,7 +244,6 @@
     idlecounter = 0;
 }
 
-
 void RA8875::RegisterPerformance(method_e method)
 {
     unsigned long elapsed = performance.read_us();
@@ -373,8 +372,10 @@
 {
     int i = 20000/POLLWAITuSec; // 20 msec max
 
-    while (i-- && ReadStatus() & mask)
+    while (i-- && ReadStatus() & mask) {
         wait_us(POLLWAITuSec);
+        CountIdleTime(POLLWAITuSec);
+    }
     if (i)
         return true;
     else
@@ -387,8 +388,10 @@
 {
     int i = 20000/POLLWAITuSec; // 20 msec max
 
-    while (i-- && ReadCommand(reg) & mask)
+    while (i-- && ReadCommand(reg) & mask) {
         wait_us(POLLWAITuSec);
+        CountIdleTime(POLLWAITuSec);
+    }
     if (i)
         return true;
     else