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:
79:544eb4964795
Parent:
76:c981284eb513
Child:
95:ef538bd687c0
--- a/GraphicsDisplay.h	Sun Dec 28 03:14:35 2014 +0000
+++ b/GraphicsDisplay.h	Sun Dec 28 19:55:16 2014 +0000
@@ -169,7 +169,9 @@
     /// This restores the 'window' to the full screen, so that 
     /// other operations (@see cls) would clear the whole screen.
     ///
-    virtual void WindowMax(void);
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    virtual RetCode_t WindowMax(void);
     
     /// method to put a single color pixel to the screen.
     ///
@@ -178,13 +180,24 @@
     /// by _EndGraphicsStream.
     ///
     /// @param[in] pixel is a color value to be put on the screen.
-    /// @returns error code.
+    /// @returns success/failure code. @see RetCode_t.
     ///
     virtual RetCode_t _putp(color_t pixel);
 
+    /// method to fill a region.
+    ///
+    /// This method fills a region with the specified color.
+    ///
+    /// @param[in] x is the left-edge of the region.
+    /// @param[in] y is the top-edge of the region.
+    /// @param[in] w specifies the width of the region.
+    /// @param[in] h specifies the height of the region.
+    /// @returns success/failure code. @see RetCode_t.
+    /// 
+    virtual RetCode_t fill(int x, int y, int w, int h, color_t color);
     
-    virtual void fill(int x, int y, int w, int h, color_t color);
-    virtual void blit(int x, int y, int w, int h, const int * color);    
+    
+    virtual RetCode_t blit(int x, int y, int w, int h, const int * color);    
     
     /// This method transfers one character from the external font data
     /// to the screen.