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:
133:e36dcfc2d756
Parent:
132:a5d7a8541683
Child:
136:224e03d5c31f
--- a/RA8875.h	Sun Sep 04 16:54:34 2016 +0000
+++ b/RA8875.h	Mon Oct 17 00:42:47 2016 +0000
@@ -2538,6 +2538,7 @@
     ///
     void AttachIdleHandler(IdleCallback_T callback = NULL) { idle_callback = callback; }
 
+
 #ifdef PERF_METRICS
     /// Clear the performance metrics to zero.
     void ClearPerformance();
@@ -2666,6 +2667,31 @@
     ///
     int _external_getCharWidth(int c);
     
+    /// Write color to an RGB register set
+    ///
+    /// This API takes a color value, and writes it into the specified
+    /// color registers, which are a trio of 3 registers. The actual
+    /// trio write is performed based on whether the display is configured
+    /// for 8 or 16 bits per pixel.
+    ///
+    /// @param[in] regAddr is the register address starting the trio
+    /// @param[in] color is the color to write
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    RetCode_t _writeColorTrio(uint8_t regAddr, color_t color);
+    
+    /// Read color from an RGB register set
+    ///
+    /// This API reads a color value from a trio of registers. The actual
+    /// trio write is performed based on whether the display is configured
+    /// for 8 or 16 bits per pixel.
+    ///
+    /// @param[in] regAddr is the register address starting the trio
+    /// @returns color_t value
+    ///
+    color_t _readColorTrio(uint8_t regAddr);
+    
+    
     /// Convert a 16-bit color value to an 8-bit value
     ///
     /// @param[in] c16 is the 16-bit color value to convert.