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)

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Sun Nov 09 20:38:49 2014 +0000
Parent:
73:f22a18707b5e
Child:
75:ca78388cfd77
Commit message:
Deprecated one of the PrintScreen methods based on improvements in the other method.

Changed in this revision

RA8875.cpp Show annotated file Show diff for this revision Revisions of this file
RA8875.h Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875.cpp	Sun Nov 09 18:52:46 2014 +0000
+++ b/RA8875.cpp	Sun Nov 09 20:38:49 2014 +0000
@@ -1451,6 +1451,11 @@
 
 RetCode_t RA8875::PrintScreen(uint16_t layer, loc_t x, loc_t y, dim_t w, dim_t h, const char *Name_BMP)
 {
+    #if 1
+    (void)layer;
+    return PrintScreen(x, y, w, h, Name_BMP);
+    #else
+    // This is the deprecated interface and with the changes it is no longer implemented correctly.
     uint16_t curLayer = GetDrawingLayer();
     RetCode_t ret = SelectDrawingLayer(layer);
     if (ret == noerror) {
@@ -1458,6 +1463,7 @@
     }
     SelectDrawingLayer(curLayer);
     return ret;
+    #endif
 }
 
 RetCode_t RA8875::PrintScreen(loc_t x, loc_t y, dim_t w, dim_t h, const char *Name_BMP)
--- a/RA8875.h	Sun Nov 09 18:52:46 2014 +0000
+++ b/RA8875.h	Sun Nov 09 20:38:49 2014 +0000
@@ -1313,6 +1313,11 @@
     /// This method captures the specified area as a 24-bit bitmap file,
     /// including the option of layer selection.
     ///
+    /// @caution This method is deprecated as the alternate PrintScreen API
+    ///         automatically examines the display layer configuration.
+    ///         Therefore, calls to this API will ignore the layer parameter
+    ///         and automatically execute the other method.
+    ///
     /// Even though this is a 16-bit display, the stored image is in
     /// 24-bit format.
     ///