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:
40:04aa280dfa39
Parent:
38:38d503b4fad6
Child:
41:2956a0a221e5
--- a/RA8875.h	Sun Jan 26 02:02:29 2014 +0000
+++ b/RA8875.h	Tue Feb 04 02:58:06 2014 +0000
@@ -103,10 +103,10 @@
     } alignment_t;    
     
     /// Scale factor - 1, 2, 3 4
-    typedef unsigned int HorizontalScale;
+    typedef int HorizontalScale;
     
     /// Scale factor - 1, 2, 3, 4
-    typedef unsigned int VerticalScale;
+    typedef int VerticalScale;
 
     /// Clear screen region
     typedef enum
@@ -334,14 +334,20 @@
     ///
     /// @param hScale defaults to 1, but can be 1, 2, 3, or 4,
     ///     and scales the font size by this amount.
-    /// @param vScale defaults to 1, but can be 1, 2, 3, or 4,
-    ///     and scales the font size by this amount.
+    /// @param vScale is an optional parameter that defaults to the hScale value, 
+    ///     but can be 1, 2, 3, or 4, and scales the font size by this amount.
+    ///
+    /// @code
+    ///     lcd.SetTextFontSize(2);     // Set the font to 2x normal size
+    ///     lcd.SetTextFontSize(2,3);   // Set the font to 2x Width and 3x Height
+    ///     lcd.SetTextFontSize();      // Restore to normal size in both dimensions
+    /// @endcode
     ///
     /// @note if either hScale or vScale is outside of its permitted range,
     ///     the command is not executed.
     /// @returns success/failure code. @see RetCode_t.
     ///
-    RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = 1);
+    RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = -1);
     
     /// put a character on the screen.
     ///