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)

Revision:
120:be2aaa3adf72
Parent:
119:d129b798f82f
Child:
121:6bc4911f5e55
--- a/GraphicsDisplayJPEG.cpp	Mon May 16 21:30:35 2016 +0000
+++ b/GraphicsDisplayJPEG.cpp	Mon May 16 22:31:13 2016 +0000
@@ -179,7 +179,7 @@
         jd->sz_pool -= nd;
         rp = (char*)jd->pool;           /* Get start of available memory pool */
         jd->pool = (void*)(rp + nd);    /* Allocate requierd bytes */
-        INFO("jd->pool %p", jd->pool);
+        //INFO("jd->pool %p", jd->pool);
     }
     INFO("rp %p", rp);
     return (void*)rp;   /* Return allocated memory block (NULL:no memory to allocate) */
@@ -203,7 +203,8 @@
     uint8_t d, z;
     int32_t *pb;
 
-
+    INFO("create qt table (%p,%p,%d)", jd, data, ndata);
+    HexDump("JDEC", (uint8_t *)jd, sizeof(JDEC));
     while (ndata) { /* Process all tables in the segment */
         if (ndata < 65) return JDR_FMT1;    /* Err: table size is unaligned */
         ndata -= 65;
@@ -815,7 +816,7 @@
 
 uint16_t GraphicsDisplay::privInFunc(JDEC * jd, uint8_t * buff, uint16_t ndata)
 {
-    INFO("Read in %p count %d", buff, ndata);
+    //INFO("Read in %p count %d", buff, ndata);
     if (buff) {
         size_t n = fread(buff, 1, ndata, (FILE *)jd->device);
         INFO("fread returned %d of %d", n, ndata);
@@ -830,7 +831,7 @@
 
 uint16_t GraphicsDisplay::getJpegData(JDEC * jd, uint8_t * buff, uint16_t ndata)
 {
-    INFO("getJpegData(%p, %p, %d)", jd->infunc, buff, ndata);
+    //INFO("getJpegData(%p, %p, %d)", jd, buff, ndata);
     if (jd->infunc)
         return jd->infunc(jd, buff, ndata);
     else
@@ -894,7 +895,7 @@
     uint16_t n, i, j, len;
     JRESULT rc;
 
-    INFO("jd_prepare(%p,%p,%p,%d,%p)");
+    INFO("jd_prepare(%p,%p,%p,%d,%p)", jd, infunc, pool, sz_pool, dev);
     HexDump("JDEC", (uint8_t *)jd, sizeof(JDEC));
 
     if (!pool) {
@@ -902,7 +903,7 @@
         return JDR_PAR;
     }
 
-    INFO("pool is at %p", pool);
+    //INFO("pool is at %p", pool);
     jd->pool = pool;        /* Work memroy */
     jd->sz_pool = sz_pool;  /* Size of given work memory */
     jd->infunc = infunc;    /* Stream input function */
@@ -928,7 +929,7 @@
         ERR("JDR_INP");
         return JDR_INP;/* Check SOI marker */
     }
-    INFO("SOI");
+    INFO("Checkpoint");
     HexDump("SOI marker", seg, 2);
     if (LDB_WORD(seg) != 0xFFD8) {
         ERR("JDR_FMT1");