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: GraphicsDisplay.cpp
- Revision:
- 121:6bc4911f5e55
- Parent:
- 120:be2aaa3adf72
- Child:
- 122:79e431f98fa9
diff -r be2aaa3adf72 -r 6bc4911f5e55 GraphicsDisplay.cpp --- a/GraphicsDisplay.cpp Mon May 16 22:31:13 2016 +0000 +++ b/GraphicsDisplay.cpp Tue May 17 22:05:43 2016 +0000 @@ -9,7 +9,7 @@ #include "Bitmap.h" #include "string.h" -#define DEBUG "GD " +//#define DEBUG "GD " // ... // INFO("Stuff to show %d", var); // new-line is automatically appended // @@ -409,7 +409,8 @@ return(file_not_found); //INFO("RenderJpegFile(%d,%d,%s)", x,y, Name_JPG); - work = (uint16_t *)malloc(JPEG_WORK_SPACE_SIZE/sizeof(uint16_t)); + work = (uint16_t *)malloc(JPEG_WORK_SPACE_SIZE); + if (work) { jdec = (JDEC *)malloc(sizeof(JDEC)); if (jdec) {