Updated standard library
Diff: RA8875.h
- Revision:
- 180:4882e80cfcfe
- Parent:
- 167:8aa3fb2a5a31
--- a/RA8875.h Sat Jul 27 18:54:09 2019 +0000 +++ b/RA8875.h Sun Jul 28 00:21:15 2019 +0000 @@ -2389,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. @@ -3038,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);