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:
178:ae472eb22740
Parent:
177:d8e65c0e268a
Child:
181:0032d1b8f5d4
--- a/RA8875.h	Wed Jul 17 03:02:31 2019 +0000
+++ b/RA8875.h	Sun Jul 28 01:33:02 2019 +0000
@@ -38,9 +38,6 @@
 /// (GIF) images. These are implemented primarily in software, taking advantage of the 
 /// hardware acceleration where it can. 
 ///
-/// @note GIF support is quite limited, because it has RAM allcoation needs that
-///         exceed the capability of many of the MBED micros.
-///
 /// When you are satisfied with what appears on screen, there is a PrintScreen method 
 /// to pull that image back out and write it to a file system as a BitMap image.
 ///
@@ -2392,6 +2389,34 @@
     /// @note As a side effect, this changes the current
     ///     foreground color for subsequent operations.
     ///
+    /// @param[in] p1 is point 1.
+    /// @param[in] p2 is point 2.
+    /// @param[in] p3 is point 3.
+    /// @param[in] color defines the foreground color.
+    /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
+    /// @returns @ref RetCode_t value.
+    ///
+    RetCode_t filltriangle(point_t p1, point_t p2, point_t p3, color_t color, fill_t fillit = FILL);
+
+    /// Draw a triangle in the specified color.
+    ///
+    /// @note As a side effect, this changes the current
+    ///     foreground color for subsequent operations.
+    ///
+    /// @param[in] p1 is point 1.
+    /// @param[in] p2 is point 2.
+    /// @param[in] p3 is point 3.
+    /// @param[in] color defines the foreground color.
+    /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
+    /// @returns @ref RetCode_t value.
+    ///
+    RetCode_t triangle(point_t p1, point_t p2, point_t p3, color_t color, fill_t fillit = NOFILL);
+    
+    /// Draw a triangle in the specified color.
+    ///
+    /// @note As a side effect, this changes the current
+    ///     foreground color for subsequent operations.
+    ///
     /// @param[in] x1 is the horizontal for point 1.
     /// @param[in] y1 is the vertical for point 1. 
     /// @param[in] x2 is the horizontal for point 2.
@@ -3041,7 +3066,9 @@
     ////////////////// Start of Capacitive Touch Panel parameters
     
     int RoundUp(int value, int roundTo);
+public:
     uint8_t FT5206_TouchPositions(void);
+private:
     uint8_t FT5206_ReadRegU8(uint8_t reg);
     uint8_t GSL1680_TouchPositions(void);
     uint8_t GSL1680_ReadRegU8(uint8_t reg, uint8_t * buf, int count);