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:
127:db7f2c704693
Parent:
125:7a0b70f56550
Child:
131:5bd6ba2ee4a1
--- a/RA8875.h	Sat Aug 06 15:09:34 2016 +0000
+++ b/RA8875.h	Sat Aug 06 20:04:23 2016 +0000
@@ -293,10 +293,10 @@
         align_full      ///< align - full
     } alignment_t;    
     
-    /// Scale factor - 1, 2, 3 4
+    /// Font Horizontal Scale factor - 1, 2, 3 4
     typedef int HorizontalScale;
     
-    /// Scale factor - 1, 2, 3, 4
+    /// Font Vertical Scale factor - 1, 2, 3, 4
     typedef int VerticalScale;
 
     /// Clear screen region
@@ -1476,7 +1476,21 @@
     /// @returns success/failure code. See @ref RetCode_t.
     ///
     RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = -1);
-    
+
+
+    /// Get the text font size of the RA8875 internal fonts.
+    ///
+    /// This command lets you retrieve the current settings for the font
+    /// horizontal and vertical scale factors. The return value is 
+    /// one of the scale factors 1, 2, 3, or 4.
+    ///
+    /// @param[out] hScale is a pointer to memory where the horizontal scale factor
+    ///     will be written. If the pointer is null, that item will be ignored.
+    /// @param[out] vScale is a pointer to memory where the vertical scale factor
+    ///     will be written. If the pointer is null, that item will be ignored.
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    RetCode_t GetTextFontSize(HorizontalScale * hScale, VerticalScale * vScale);
 
     /// put a character on the screen.
     ///
@@ -2267,6 +2281,11 @@
     ///
     virtual RetCode_t SelectUserFont(const uint8_t * font = NULL);
 
+    /// Get the currently selected user font.
+    ///
+    /// @returns a pointer to the font, or null, if no user font is selected.
+    ///
+    virtual const uint8_t * GetUserFont(void) { return font; }
 
     /// Get the RGB value for a DOS color.
     ///