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:
31:c72e12cd5c67
Parent:
29:422616aa04bd
Child:
32:0e4f2ae512e2
--- a/GraphicsDisplay.h	Sun Jan 19 04:42:25 2014 +0000
+++ b/GraphicsDisplay.h	Mon Jan 20 19:19:48 2014 +0000
@@ -27,10 +27,11 @@
     virtual int height() = 0;
         
     virtual void window(unsigned int x,unsigned int y,unsigned int w,unsigned int h);
-    virtual void putp(int colour);
+    virtual void WindowMax(void);
+    virtual void putp(color_t colour);
     
     virtual RetCode_t cls();
-    virtual void fill(int x, int y, int w, int h, int colour);
+    virtual void fill(int x, int y, int w, int h, color_t colour);
     virtual void blit(int x, int y, int w, int h, const int * colour);    
     
     virtual int blitbit(int x, int y, int w, int h, const char * colour);
@@ -50,6 +51,22 @@
     ///
     virtual int fontblit(int x, int y, const unsigned char * fontTable, const unsigned char * fontChar);
     
+    /// This method reads a disk file that is in bitmap format and 
+    /// puts it on the screen.
+    ///
+    /// @note This only reads 16-bit bitmap format.
+    /// @note This is a slow operation, partially due to the use of
+    ///         the local file system, and partially because bmp files
+    ///         are stored from the bottom up, and the memory is written
+    ///         from the top down.
+    ///
+    /// @param x is the horizontal pixel coordinate
+    /// @param y is the vertical pixel coordinate
+    /// @param Name_BMP is the filename on the local file system.
+    /// @returns success or error code.
+    ///
+    RetCode_t BMP_16(unsigned int x, unsigned int y, const char *Name_BMP);
+    
     /// prints one character at the specified coordinates.
     ///
     /// This will print the character at the specified pixel coordinates.