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.h	Sun Jan 12 17:40:32 2014 +0000
+++ b/RA8875.h	Sun Jan 12 18:44:58 2014 +0000
@@ -16,22 +16,24 @@
 #define RGB(r,g,b) ( ((r<<8)&0xF800) | ((g<<3)&0x07E0) | (b>>3) )
 
 /// DOS colors - slightly color enhanced
-#define Black RGB(0,0,0)
-#define Blue RGB(0,0,187)
-#define Green RGB(0,187,0)
-#define Cyan RGB(0,187,187)
-#define Red RGB(187,0,0)
-#define Magenta RGB(187,0,187)
-#define Brown RGB(187,187,0)
-#define Gray RGB(187,187,187)
-#define Charcoal RGB(85,85,85)
-#define BrightBlue RGB(85,85,255)
-#define BrightGreen RGB(85,255,85)
-#define BrightCyan RGB(85,255,255)
-#define Orange RGB(255,85,85)
-#define Pink RGB(255,85,255)
-#define Yellow RGB(255,255,85)
-#define White RGB(255,255,255)
+#define Black       (color_t)(RGB(0,0,0))
+#define Blue        (color_t)(RGB(0,0,187))
+#define Green       (color_t)(RGB(0,187,0))
+#define Cyan        (color_t)(RGB(0,187,187))
+#define Red         (color_t)(RGB(187,0,0))
+#define Magenta     (color_t)(RGB(187,0,187))
+#define Brown       (color_t)(RGB(187,187,0))
+#define Gray        (color_t)(RGB(187,187,187))
+#define Charcoal    (color_t)(RGB(85,85,85))
+#define BrightBlue  (color_t)(RGB(85,85,255))
+#define BrightGreen (color_t)(RGB(85,255,85))
+#define BrightCyan  (color_t)(RGB(85,255,255))
+#define Orange      (color_t)(RGB(255,85,85))
+#define Pink        (color_t)(RGB(255,85,255))
+#define Yellow      (color_t)(RGB(255,255,85))
+#define White       (color_t)(RGB(255,255,255))
+
+#define BrightRed   (color_t)(RGB(255,0,0))
 
 //namespace SW_graphics
 //{