This is the David Smart RA8875 Library with mods for working with FRDM-K64F

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);