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:
20:6e2e4a8372eb
Parent:
19:3f82c1161fd2
Child:
21:3c1efb192927
--- a/RA8875.cpp	Sun Jan 12 17:40:32 2014 +0000
+++ b/RA8875.cpp	Sun Jan 12 18:44:58 2014 +0000
@@ -7,6 +7,11 @@
 ///
 #include "RA8875.h"
 
+DigitalOut zz1(LED1);
+DigitalOut zz2(LED2);
+DigitalOut zz3(LED3);
+DigitalOut zz4(LED4);
+
 //#define DEBUG "RAIO"
 // ...
 // INFO("Stuff to show %d", var); // new-line is automatically appended
@@ -508,15 +513,21 @@
 RetCode_t RA8875::triangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, 
     unsigned int x3, unsigned int y3, color_t color, fill_t fillit)
 {
+    RetCode_t ret;
+    
     foreground(color);
-    return triangle(x1,y1,x2,y2,x3,y3,color,fillit);
+    ret = triangle(x1,y1,x2,y2,x3,y3,fillit);
+    return ret;
 }
 
 RetCode_t RA8875::filltriangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, 
     unsigned int x3, unsigned int y3, color_t color, fill_t fillit)
 {
+    RetCode_t ret;
+
     foreground(color);
-    return triangle(x1,y1,x2,y2,x3,y3,color,fillit);
+    ret = triangle(x1,y1,x2,y2,x3,y3,fillit);
+    return ret;
 }
 
 RetCode_t RA8875::triangle(unsigned int x1, unsigned int y1 ,unsigned int x2, unsigned int y2,