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:
142:6e9bff59878a
Parent:
136:224e03d5c31f
Child:
146:373d59f08357
--- a/GraphicsDisplay.cpp	Thu Dec 29 20:06:00 2016 +0000
+++ b/GraphicsDisplay.cpp	Sun Mar 19 21:41:24 2017 +0000
@@ -150,7 +150,17 @@
 
 RetCode_t GraphicsDisplay::cls(uint16_t layers)
 {
-    return fill(0, 0, width(), height(), _background);
+    int restore = GetDrawingLayer();
+    if (layers & 1) {
+        SelectDrawingLayer(0);
+        fill(0, 0, width(), height(), _background);
+    }
+    if (layers & 2) {
+        SelectDrawingLayer(1);
+        fill(0, 0, width(), height(), _background);
+    }
+    SelectDrawingLayer(restore);
+    return noerror;
 }
 
 RetCode_t GraphicsDisplay::blit(loc_t x, loc_t y, dim_t w, dim_t h, const int * color)