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
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)
Diff: RA8875.cpp
- Revision:
- 107:f9ccffcb84f1
- Parent:
- 106:c80828f5dea4
- Child:
- 109:7b94f06f085b
--- a/RA8875.cpp Sat Feb 27 22:27:49 2016 +0000 +++ b/RA8875.cpp Sat Mar 05 16:20:11 2016 +0000 @@ -1182,6 +1182,10 @@ return noerror; } +// +// Rectangle functions all mostly helpers to the basic rectangle function +// + RetCode_t RA8875::fillrect(rect_t r, color_t color, fill_t fillit) { return rect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, color, fillit); @@ -1205,7 +1209,6 @@ return rect(x1,y1,x2,y2,fillit); } - RetCode_t RA8875::rect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, fill_t fillit) { @@ -1240,6 +1243,15 @@ } +// +// rounded rectangle functions are mostly helpers to the base round rect +// + +RetCode_t RA8875::fillroundrect(rect_t r, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) +{ + return roundrect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, radius1, radius2, color, fillit); +} + RetCode_t RA8875::fillroundrect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) { @@ -1247,6 +1259,10 @@ return roundrect(x1,y1,x2,y2,radius1,radius2,fillit); } +RetCode_t RA8875::roundrect(rect_t r, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) +{ + return roundrect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, radius1, radius2, color, fillit); +} RetCode_t RA8875::roundrect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) @@ -1295,6 +1311,10 @@ } +// +// triangle functions +// + RetCode_t RA8875::triangle(loc_t x1, loc_t y1, loc_t x2, loc_t y2, loc_t x3, loc_t y3, color_t color, fill_t fillit) {