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:
- 58:26658a56112a
- Parent:
- 56:7a85d226ad0d
- Child:
- 59:fb40aad4efd4
--- a/RA8875.cpp Wed Apr 16 22:18:19 2014 +0000 +++ b/RA8875.cpp Sat Jul 05 15:59:55 2014 +0000 @@ -49,10 +49,10 @@ RA8875::RA8875(PinName mosi, PinName miso, PinName sclk, PinName csel, PinName reset, const char *name) - : spi(mosi, miso, sclk) + : GraphicsDisplay(name) + , spi(mosi, miso, sclk) , cs(csel) , res(reset) - , GraphicsDisplay(name) { font = NULL; // no external font, use internal. select(false); // deselect the display @@ -1845,7 +1845,7 @@ "A - Auto Test mode S - Speed Test\r\n" "p - print screen r - reset \r\n" "l - layer test w - wrapping text \r\n" - #ifdef DEBUG + #ifdef PERF_METRICS "0 - clear performance 1 - report performance\r\n" #endif "> "); @@ -1858,7 +1858,7 @@ q = modelist[automode]; } switch(q) { - #ifdef DEBUG + #ifdef PERF_METRICS case '0': lcd.ClearPerformance(); break;