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:
57:bd53a9e165a1
Parent:
56:7a85d226ad0d
Child:
58:26658a56112a
--- a/RA8875.h	Mon Mar 31 23:35:51 2014 +0000
+++ b/RA8875.h	Wed Apr 16 22:18:19 2014 +0000
@@ -1157,6 +1157,24 @@
     ///
     virtual RetCode_t _EndGraphicsStream(void);
 
+    /// Set the SPI port frequency (in Hz).
+    ///
+    /// @note attempts to call this API at runtime, with the display
+    ///         already online, cause the system to lockup. 
+    ///         Investigation continues.
+    ///
+    /// This uses the mbed SPI driver, and is therefore dependent on
+    /// its capabilities. Limited tests were performed for the display
+    /// in the range of 1,000,000 to 10,000,000 Hz. The display was
+    /// a bit erratic above 5,000,000 Hz, so this became the default,
+    /// even though it might have been the bench-level wiring that posed
+    /// the limit.
+    ///
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    RetCode_t frequency(unsigned long Hz = RA8875_DEFAULT_SPI_FREQ);
+    
+
 #ifdef PERF_METRICS
     /// Clear the performance metrics to zero.
     void ClearPerformance();
@@ -1239,24 +1257,6 @@
 #define TPBUFSIZE   16       // Depth of the averaging buffers for x and y data
 
 
-    /// Set the SPI port frequency (in Hz).
-    ///
-    /// @note attempts to call this API at runtime, with the display
-    ///         already online, cause the system to lockup. 
-    ///         Not sure why, so moving this to private to run once.
-    ///
-    /// This uses the mbed SPI driver, and is therefore dependent on
-    /// its capabilities. Limited tests were performed for the display
-    /// in the range of 1,000,000 to 50,000,000 Hz. The display was
-    /// a bit erratic above 20,000,000 Hz, so this became the default,
-    /// even though it might have been the bench-level wiring that posed
-    /// the limit.
-    ///
-    /// @returns success/failure code. @see RetCode_t.
-    ///
-    RetCode_t frequency(unsigned long Hz = RA8875_DEFAULT_SPI_FREQ);
-    
-
     /// Initialize the chip, which is normally done as part of the
     /// constructor, so not called by the user.
     ///