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:
136:224e03d5c31f
Parent:
133:e36dcfc2d756
Child:
137:9e09f6081ef1
--- a/RA8875.h	Sun Nov 13 02:06:30 2016 +0000
+++ b/RA8875.h	Wed Nov 16 02:48:45 2016 +0000
@@ -1210,8 +1210,16 @@
     /// @returns the value read from the register.
     ///
     unsigned char ReadCommand(unsigned char command);
+
+
+    /// Read a word from a command register
+    ///
+    /// @param[in] command is the command register to read.
+    /// @returns the value read from the register.
+    ///
+    uint16_t ReadCommandW(unsigned char command);
     
-
+    
     /// Read a data byte from the display
     ///
     /// This is a high level command, and may invoke several primitives.
@@ -1547,6 +1555,20 @@
     ///
     virtual RetCode_t SetGraphicsCursor(loc_t x, loc_t y);
 
+    /// Prepare the controller to write binary data to the screen by positioning
+    /// the memory cursor.
+    ///
+    /// @param[in] p is the point representing the cursor position to set
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    virtual RetCode_t SetGraphicsCursor(point_t p);
+    
+    /// Read the current graphics cursor position as a point.
+    ///
+    /// @returns the graphics cursor as a point.
+    ///
+    virtual point_t GetGraphicsCursor(void);
+
     
     /// Prepare the controller to read binary data from the screen by positioning
     /// the memory read cursor.
@@ -1748,7 +1770,7 @@
     virtual color_t getPixel(loc_t x, loc_t y);
     
     
-    /// Write a stream of pixels to the display.
+    /// Write an RGB565 stream of pixels to the display.
     ///
     /// @param[in] p is a pointer to a color_t array to write.
     /// @param[in] count is the number of pixels to write.