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:
164:76edd7d9cb68
Parent:
163:17526689a3ed
Child:
165:695c24cc5197
--- a/RA8875.h	Wed Feb 13 04:20:12 2019 +0000
+++ b/RA8875.h	Thu Feb 14 12:34:52 2019 +0000
@@ -329,7 +329,7 @@
         TP_Manual,             ///< Manual touch detection mode
     } tpmode_t;
 
-    /// printscreen callback commands
+    /// PrintScreen callback commands
     typedef enum
     {
         OPEN,       ///< command to open the file. cast uint32_t * to the buffer to get the total size to be written.
@@ -2677,6 +2677,8 @@
     /// @param[in] Name_BMP is the filename to write the image to.
     /// @param[in] bitsPerPixel is optional, defaults to 24, and only 
     ///             accepts the values 24, 8
+    ///             NOTE: The downscaling is CPU intensive, and the operation
+    ///             takes longer.
     /// @return success or error code.
     ///
     RetCode_t PrintScreen(loc_t x, loc_t y, dim_t w, dim_t h, const char *Name_BMP, uint8_t bitsPerPixel = 24);
@@ -2701,9 +2703,13 @@
     /// @param[in] y is the top edge of the region to capture
     /// @param[in] w is the width of the region to capture
     /// @param[in] h is the height of the region to capture.
+    /// @param[in] bitsPerPixel is optional, defaults to 24, and only 
+    ///             accepts the values 24, 8
+    ///             NOTE: The downscaling is CPU intensive, and the operation
+    ///             takes longer.
     /// @return success or error code.
     ///
-    RetCode_t PrintScreen(loc_t x, loc_t y, dim_t w, dim_t h);
+    RetCode_t PrintScreen(loc_t x, loc_t y, dim_t w, dim_t h, uint8_t bitsPerPixel = 24);
 
     
     /// PrintScreen callback registration.