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_Touch.cpp

Revision Date Message Actions
206:83edda283d90 2020-05-25 Pick up a change in the touch ISR to pick up the final release. File  Diff  Annotate
205:f215dc32736b 2020-05-23 Defect correction - disable irq while configuring the FT5206 and GSL1680 touch controllers to avoid unexpected ISRs. File  Diff  Annotate
203:704df2dbd3e6 2020-05-17 Fix coordinate translation for touch events.; Minor code cleanup. File  Diff  Annotate
202:a22cbc04f332 2020-04-30 Private max,min macros; avoid collision with other libs.; Correct jpg rendering defect; window() to SetWindow().; Coordinate translation for touch with orientation.; Added method; get rendered rect_t for string.; Fix for the reset pin option.; File  Diff  Annotate
198:9b6851107426 2020-03-28 BREAKING Changes - ; This update alters several APIs, renames some, and generally simplifies. It also has great improvement for Portrait mode orientation. File  Diff  Annotate
197:853d08e2fb53 2020-02-11 General code cleanup. File  Diff  Annotate
196:56820026701b 2020-02-11 Added puts w/point_t parameter. File  Diff  Annotate
193:74f80834d59d 2019-11-25 Improve debouncing of resistive touch.; Minor format changes for easier maintenance. File  Diff  Annotate
190:3132b7dfad82 2019-09-21 Fonts Add & mods; Add methods; - get dimensions of image file; - round or square cap for thicklines; - word-wrap for puts; - align one rect to another; - independently set the text font fill; - get the width of a character, or a string File  Diff  Annotate
184:464cc376265d 2019-08-23 Enable Touch translation based on screen orientation. It appears fully function with Cap Touch for 0, 180, but has known issues for 90 and 270. File  Diff  Annotate
183:808f272e481e 2019-08-08 Minor code-cleanup File  Diff  Annotate
181:0032d1b8f5d4 2019-08-02 A bit of experimenting on rotation. File  Diff  Annotate
178:ae472eb22740 2019-07-28 Install handler before enabling IRQ; Eliminate duplicate initialisations; Speedup ThickLine using rectangles and triangles; Add triangle method using points; Improve mbed version adaptation of callback; Added some debug info. File  Diff  Annotate
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
171:f92c0f1f6db4 2019-03-02 Integrate support for alternate touch controller based on GSL1680 chip (found in some RA8875-based displays instead of the FT5206 chip). File  Diff  Annotate
169:1c1a495983bc 2019-03-01 Additional debug and configuration for the GSL1680 Touch Controller. File  Diff  Annotate
168:37a0c4d8791c 2019-03-01 Added debug aids to GSL1680 controller driver. File  Diff  Annotate
167:8aa3fb2a5a31 2019-02-26 Documentation update to the script in the Fonts/FontMods.h file to improve the understanding of what it does. 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
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
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
145:5eb2492acdda 2017-05-06 hook the memory allocation to use a special instrumented allocation File  Diff  Annotate
130:d633e80840e0 2016-08-06 Another small alignment between multi-touch and single-touch behavior. File  Diff  Annotate
129:3f2d8b84144d 2016-08-06 Remove dead-code. File  Diff  Annotate
128:3c74ba4533dc 2016-08-06 Small change in the touch handler so the single-touch and multi-touch APIs are more consistent. 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
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
108:7415c405ee08 2016-03-14 corrected a buffer overrun in the InsertionSort function of RA8875_Touch.cpp. Thanks to Michael Dinning for reporting it. 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
88:bfddef6ec836 2015-01-19 Added a timeout to the touch calibration process, so that it will return if there is no touchscreen, user not present, or a stuck touchscreen. 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
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
81:01da2e34283d 2014-12-28 Refactored constructor() and init().; Added rect_t as a rectangle type.; Added new rect() methods that use rect_t.; Added touch panel calibration (and some renamed touch* methods). File  Diff  Annotate
79:544eb4964795 2014-12-28 cleaned up touch screen support, which included renaming the APIs to better reflect their purpose.; remove dead code, added documentation for methods that were missing it.; major refactor to the constructor, to move needed code to init(). File  Diff  Annotate
78:faf49c381591 2014-12-28 Continue work on touch screen, and some file refactoring for easier maintenance. File  Diff  Annotate