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)

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Sun Apr 04 17:15:57 2021 +0000
Parent:
207:82f336e5c021
Child:
209:08fc22dea762
Commit message:
Comment out a runtime disabled block of code - was using if (0 && ...)

Changed in this revision

RA8875.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875.cpp	Sun Apr 04 16:50:15 2021 +0000
+++ b/RA8875.cpp	Sun Apr 04 17:15:57 2021 +0000
@@ -3121,11 +3121,11 @@
         if (bitsPerPixel != 24) {
             //HexDump("Palette", (uint8_t *)&WebColorPalette, sizeof(WebColorPalette));
             fwrite(&WebColorPalette, sizeof(char), sizeof(WebColorPalette), Image);
-            if (0 && sizeof(WebColorPalette) % 4) {
-                const uint8_t padd[] = { 0, 0, 0 };
-                fwrite(&padd, sizeof(char),
-                    (sizeof(BMP_Header) + sizeof(BMP_Info) + sizeof(WebColorPalette)) % 4, Image);
-            }
+            //if (0 && sizeof(WebColorPalette) % 4) {
+            //    const uint8_t padd[] = { 0, 0, 0 };
+            //    fwrite(&padd, sizeof(char),
+            //        (sizeof(BMP_Header) + sizeof(BMP_Info) + sizeof(WebColorPalette)) % 4, Image);
+            //}
         }
         //color_t transparency = GetBackgroundTransparencyColor();
         LayerMode_T ltpr0 = GetLayerMode();