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:
197:853d08e2fb53
Parent:
196:56820026701b
Child:
198:9b6851107426
--- a/GraphicsDisplayGIF.cpp	Tue Feb 11 21:26:59 2020 +0000
+++ b/GraphicsDisplayGIF.cpp	Tue Feb 11 21:51:42 2020 +0000
@@ -1,3 +1,7 @@
+
+
+
+// GIFRender.cpp : Defines the entry point for the console application.
 //
 // The code in this file was initially found online, in a tutorial.
 // It has been revised significantly in this derivative.
@@ -11,13 +15,14 @@
 
 
 //#define DEBUG "GIF_"
-// 
+//
+
 // INFO("Stuff to show %d", var); // new-line is automatically appended
 //
 #if (defined(DEBUG) && !defined(TARGET_LPC11U24))
-#define INFO(x, ...) std::printf("[INF %s %4d] "x"\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
-#define WARN(x, ...) std::printf("[WRN %s %4d] "x"\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
-#define ERR(x, ...)  std::printf("[ERR %s %4d] "x"\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
+#define INFO(x, ...) std::printf("[INF %s %4d] " x "\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
+#define WARN(x, ...) std::printf("[WRN %s %4d] " x "\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
+#define ERR(x, ...)  std::printf("[ERR %s %4d] " x "\r\n", DEBUG, __LINE__, ##__VA_ARGS__);
 static void HexDump(const char * title, const uint8_t * p, int count) {
     int i;
     char buf[100] = "0000: ";
@@ -242,7 +247,7 @@
 
 
 /// read a block
-/// 
+///
 /// @param[in] fh is the handle to the gif file.
 /// @param[in] data is a pointer to a pointer to the data being processed.
 /// @return -1 on failure, 0 when done, or >0 as the length of a processed data block
@@ -278,7 +283,7 @@
     return data_length;
 }
 
-// color table is encoded as 24-bit values, but we don't need that much space, since 
+// color table is encoded as 24-bit values, but we don't need that much space, since
 // the RA8875 is configured as either 8 or 16-bit color.
 //
 RetCode_t GraphicsDisplay::readColorTable(color_t * colorTable, int colorTableSize, FILE * fh) {
@@ -437,7 +442,8 @@
         if (read_filesystem_bytes(&block_type, sizeof(block_type), fh) < sizeof(block_type))
             return not_supported_format;
         INFO("block type: %02X", block_type);
-        
+       
+
         RetCode_t r_pgid = noerror;
         switch (block_type) {
             case IMAGE_DESCRIPTOR: