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:
126:c91bd2e500b9
Child:
142:6e9bff59878a
--- a/GraphicsDisplay.h	Sun Nov 13 02:06:30 2016 +0000
+++ b/GraphicsDisplay.h	Wed Nov 16 02:48:45 2016 +0000
@@ -105,6 +105,21 @@
     ///
     virtual RetCode_t SetGraphicsCursor(loc_t x, loc_t y) = 0;
     
+    
+    /// 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) = 0;
+    
+    /// Read the current graphics cursor position as a point.
+    ///
+    /// @returns the graphics cursor as a point.
+    ///
+    virtual point_t GetGraphicsCursor(void) = 0;
+
     /// Prepare the controller to read binary data from the screen by positioning
     /// the memory read cursor.
     ///
@@ -465,6 +480,9 @@
 
 private:
 
+    loc_t img_x;    /// x position of a rendered jpg
+    loc_t img_y;    /// y position of a rendered jpg
+
     /// Analyze the jpeg data in preparation for decompression.
     ///
     JRESULT jd_prepare(JDEC * jd, uint16_t(* infunc)(JDEC * jd, uint8_t * buffer, uint16_t bufsize), void * pool, uint16_t poolsize, void * filehandle);