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:
82:f7d300f26540
Parent:
81:01da2e34283d
Child:
83:7bad0068cca0
--- a/RA8875.h	Sun Dec 28 21:50:28 2014 +0000
+++ b/RA8875.h	Tue Dec 30 23:45:37 2014 +0000
@@ -97,6 +97,9 @@
 #define DarkBrown   (color_t)(RGB(63,63,0))
 #define DarkGray    (color_t)(RGB(63,63,63))
 
+#define min(a,b) ((a<b)?a:b)
+#define max(a,b) ((a>b)?a:b)
+
 
 //namespace SW_graphics
 //{
@@ -350,6 +353,14 @@
     ///
     RetCode_t SetLayerMode(LayerMode_T mode);
     
+    /// Get the Layer presentation mode.
+    ///
+    /// This gets the current layer mode. @see LayerMode_T.
+    ///
+    /// @returns layer mode.
+    ///
+    LayerMode_T GetLayerMode(void);
+    
     /// Set the layer transparency for each layer.
     ///
     /// Set the transparency, where the range of values is
@@ -747,6 +758,16 @@
     ///
     uint8_t getc();
     
+    
+    /// Determine if a point is within a rectangle.
+    ///
+    /// @param[in] rect is a rectangular region to use.
+    /// @param[in] p is a point to analyze to see if it is within the rect.
+    /// @returns true if p is within rect.
+    ///
+    bool Intersect(rect_t rect, point_t p);
+
+    
     /// Write a command to the display with a word of data.
     ///
     /// This is a high level command, and may invoke several primitives.
@@ -1214,7 +1235,7 @@
     /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
     /// @returns success/failure code. @see RetCode_t.
     ///
-    RetCode_t rect(rect_t rect, color_t color, fill_t fillit);
+    RetCode_t rect(rect_t rect, color_t color, fill_t fillit = NOFILL);
     
      /// Draw a filled rectangle in the specified color
     ///