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)

Revisions of RA8875.cpp

Revision Date Message Actions
176:4ab96d33a8ec 2019-03-24 Correct a defect recently introduced, where the resistive touch screen failed to have memory allocated to hold the touch information. File  Diff  Annotate
175:7be3a1fb7fc2 2019-03-15 Non-functional change to WriteCommand() based on register names, rather than hex values. File  Diff  Annotate
172:7abb03bf31be 2019-01-13 Non-functional refactoring File  Diff  Annotate
166:53fd4a876dac 2019-02-24 Some refactoring, but mostly to improve support for GSL1680 controller to extract the touch id. File  Diff  Annotate
165:695c24cc5197 2019-02-24 Initial refactoring to add support for another Cap Sense touch controller - based on the GSL1680. File  Diff  Annotate
164:76edd7d9cb68 2019-02-14 PrintScreen - 24-bit or 8-bit BMP format support. Improved documentation to the palette and the performance factors. File  Diff  Annotate
163:17526689a3ed 2019-02-13 Add ability to PrintScreen as an 8-bit bitmap, as an alternate to the default of 24-bit. File  Diff  Annotate
162:a2d7f1988711 2019-02-11 PrintScreen - bug fixes in header info and symmetry of RGB16toRGBQuad and RGBQuadToRGB16 File  Diff  Annotate
157:1565f38ca44b 2019-01-02 Improvement to resistive touch to simplify startup.; Init default for the backlight to be dimmer, since many users power it only from their PC, which isn't capable of full backlight power. File  Diff  Annotate
155:b3f225ae572c 2018-11-13 use eventThread for newer OS5 in place of callbacks.; touch-cal timeout increased to 30s from 15. File  Diff  Annotate
154:ad2450fc3dc3 2018-08-17 Documentation updates for using resistive touch. File  Diff  Annotate
153:8a85efb3eb71 2018-07-29 Soft Fonts and very preliminary GIF support. File  Diff  Annotate
152:a013ac0133e4 2017-11-06 Initial support for GIF rendering File  Diff  Annotate
151:ae94daaaf8ad 2018-04-14 Add support for scaling soft fonts, using the SetTextFontSize api. File  Diff  Annotate
150:35a4db3081c1 2017-09-24 callback functions is conditional on mbed version. Somewhere below 128 it does not use the extra callback api. File  Diff  Annotate
149:c62c4b2d6a15 2017-08-06 Revised the idle callback. It is additionally called from PrintScreen to communicate percent complete (with an additional parameter), since PrintScreen can take a while to finish based on the display size, layers, and SPI configuration. File  Diff  Annotate
148:33e99de1aca6 2017-06-13 Final fix on the computation of the Intersection of two rectangles, when you want to access to the resulting intersection. Prior versions worked if only if point1 was the top-left and point2 the bottom-right. This version works for any corner pair. File  Diff  Annotate
147:3494792458d9 2017-06-12 Improved the Intersect(rect_t, rect_t) to look for any intersection, and added an Intersect(rect_t *, rect_t *) which will identify and make available a new rect_t which is the intersection (if any). File  Diff  Annotate
146:373d59f08357 2017-06-01 Adopt new callback structure for ISRs,; Provide hooks for swMalloc for advanced memory usage tracking. File  Diff  Annotate
145:5eb2492acdda 2017-05-06 hook the memory allocation to use a special instrumented allocation File  Diff  Annotate
144:ba002c4b21b3 2017-05-06 Added ThickLine API File  Diff  Annotate
143:e872d65a710d 2017-03-19 unbreaking change to SelectDrawingLayer to get the return value as an optional parameter. File  Diff  Annotate
142:6e9bff59878a 2017-03-19 Breaking change on SelectDrawingLayer command, which now returns the previous layer (making it far easier to restore layers). File  Diff  Annotate
141:2ec78a50dc98 2016-12-29 Minor change from sprintf to snprintf in a couple of locations. File  Diff  Annotate
140:33ca352755a2 2016-12-27 Merge block move changes from two branches File  Diff  Annotate
139:99ec74e3273f 2016-12-27 Minor fix to the block move File  Diff  Annotate
137:9e09f6081ef1 2016-12-08 Correct a defect in BlockMove File  Diff  Annotate
136:224e03d5c31f 2016-11-16 JPG Rendering can now write to display in 8-bit color format, not just 16-bit color format. File  Diff  Annotate
135:af519fe4ba91 2016-11-13 cls resets the cursor File  Diff  Annotate
134:f028ed71a0af 2016-11-06 Updated register initialization with specific settings for each the 800x480 display and the 480x272 display. This altered the 800x480 settings. File  Diff  Annotate
133:e36dcfc2d756 2016-10-17 Revised how it sets the foreground and background color to correct a defect when in 8-bit mode. File  Diff  Annotate
131:5bd6ba2ee4a1 2016-08-12 Added API for BlockMove, and a minor revision to the init to accept a backlight setting directly. File  Diff  Annotate
127:db7f2c704693 2016-08-06 Added GetUserFont and GetTextFontSize apis, which were helpful for saving and restoring settings on the fly. File  Diff  Annotate
125:7a0b70f56550 2016-08-01 Minor documentation tweaks File  Diff  Annotate
124:1690a7ae871c 2016-07-31 Incorporated the Capacitive touch panel APIs in to the base RA8875 driver in a manner that integrated smoothly with the Resistive touch driver. File  Diff  Annotate
123:2f45e80fec5f 2016-07-25 Added idle callback - when the RA8875 driver is stuck waiting on the HW, or on a long timeout, it can call an optional callback. This could be used for maintaining the Watchdog, or other activities. File  Diff  Annotate
111:efe436c43aba 2016-04-25 Soft fonts are now restricted by the window( ) setting, just as hard fonts were. Wraps right edge back to left and cycles from bottom edge back to top. File  Diff  Annotate
109:7b94f06f085b 2016-03-05 Updated some data types to more consistently use loc_t and dim_t. File  Diff  Annotate
107:f9ccffcb84f1 2016-03-05 Added rounded rectangle apis that accept rect_t instead of discreet x1,y1,x2,y2 values. File  Diff  Annotate
106:c80828f5dea4 2016-02-27 Improved support for 8-bit color, for pixel drawing, RenderImageFile and PrintScreen. File  Diff  Annotate
105:4f116006ba1f 2016-02-27 Improved 8-bit color support, which permits dual-layer at higher resolutions. File  Diff  Annotate
103:7e0464ca6c5c 2016-02-07 Added missing APIs for Get/SetTextCursor using point_t.; Fixed a defect in touch; if no point was requested, just polling for touch-state, it would return the no calibration value during a touch. File  Diff  Annotate
101:e0aad446094a 2016-01-17 External fonts now wrap correctly at the edge of the screen (right edge by moving down one line and to the left margin, and last row by wrapping to the top row. File  Diff  Annotate
100:0b084475d5a9 2015-12-19 Corrected a defect where the portrait mode might be incorrectly inferred - then limits many commands to partial screen.; Remove set_font(). Use SelectUserFont() instead.; Removed unnecessary code in several places (redundant work). File  Diff  Annotate
98:ecebed9b80b2 2015-12-17 Significant changes to the support for Soft Fonts (User defined fonts), to directly leverage the output of the GLCD Font Creator tool and require nearly zero manual changes. This deprecates the old API setfont in favor of SelectUserFont. File  Diff  Annotate
97:03c509c3db18 2015-11-30 Fixed comment - typo File  Diff  Annotate
96:40b74dd3695b 2015-11-28 Changes for the print screen function to use callbacks. File  Diff  Annotate
95:ef538bd687c0 2015-07-07 Compiler cleanup - warning reductions. File  Diff  Annotate
94:203729061e48 2015-03-04 Prepare for the ability to control the HW reset pin. File  Diff  Annotate
93:6fbc516de05e 2015-02-01 Corrected a PrintScreen problem where it was extracting the image memory "off by one" and then a color conversion error that nearly corrected for it. File  Diff  Annotate
92:ce1ab76e8614 2015-02-01 Focus on some performance optimization. Cache the width/height so it does not contact the chip for every need. File  Diff  Annotate
91:ca5f829e6d27 2015-01-28 Beginning to hook some additional performance metrics on the individual commands - see what is used most, evaluate optimization. File  Diff  Annotate
90:d113d71ae4f0 2015-01-28 persist screen width/height in the private data so that it does not have the burn the cycles to query the hardware on every need. File  Diff  Annotate
89:04575562c961 2015-01-25 Minor change to the text for return code lookup. File  Diff  Annotate
87:ee2240581aa7 2015-01-19 Added pixel api that uses point_t type. File  Diff  Annotate
86:e86b355940f4 2015-01-17 Added GetBacklight() and small refactoring of the memory allocation in PrintScreen(). File  Diff  Annotate
85:022bba13c5c4 2015-01-13 Improved error checking on several methods. In general, if the relevant coordinates of an object are offscreen, it will return bad_parameter, rather than to draw it badly. File  Diff  Annotate
84:e102021864b5 2015-01-12 Added SetOrientation method, to orient the display in one of 0, 90, 180, 270. Removed a rotation parameter from the SetTextFontControl method. File  Diff  Annotate
83:7bad0068cca0 2015-01-01 Improve touch interface to automatically provide no_touch, touch, held, release, no_cal value.; Touch API return codes were modified to accommodate this.; Enhance some APIs with (point_t p) parameters.; Minor internal documentation improvement. File  Diff  Annotate
82:f7d300f26540 2014-12-30 Added helpful API for computing intersection of a point in a rectangle.; Fixed the rect API for default NOFILL.; File  Diff  Annotate