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:
144:ba002c4b21b3
Parent:
143:e872d65a710d
Child:
147:3494792458d9
--- a/RA8875.h	Sun Mar 19 22:11:04 2017 +0000
+++ b/RA8875.h	Sat May 06 20:14:48 2017 +0000
@@ -1871,6 +1871,28 @@
     RetCode_t line(loc_t x1, loc_t y1, loc_t x2, loc_t y2);
 
 
+    /// Draw a thick line
+    ///
+    /// Draw a line of a specified thickness and color.
+    ///
+    /// In order to draw a thick line, this draws filled circles using 
+    /// bresenham's algorithm to move the center point of the circle.
+    /// As a result, this is much slower than drawing a 1-pixel line which
+    /// uses the hardware line drawing algorithm.
+    ///
+    /// Drawing multiple parallel lines to create a thick line is faster,
+    /// however the line drawing was not guaranteed to fill every pixel
+    /// on the diagonals.
+    ///
+    /// @param[in] p1 is the point to start the line.
+    /// @param[in] p2 is the point to end the line.
+    /// @param[in] thickness is the line thickness.
+    /// @param[in] color defines the foreground color.
+    /// @returns success/failure code. See @ref RetCode_t.
+    /// 
+    RetCode_t ThickLine(point_t p1, point_t p2, dim_t thickness, color_t color);
+
+
     /// Draw a rectangle in the specified color
     ///
     /// @note As a side effect, this changes the current