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:
25:9556a3a9b7cc
Parent:
24:8ca861acf12d
Child:
29:422616aa04bd
--- a/RA8875.h	Fri Jan 17 02:10:18 2014 +0000
+++ b/RA8875.h	Fri Jan 17 03:16:51 2014 +0000
@@ -4,7 +4,7 @@
 
 #include "GraphicsDisplay.h"
 
-#define RA8875_DEFAULT_SPI_FREQ 1000000
+#define RA8875_DEFAULT_SPI_FREQ 2000000
 
 // Define this to enable code that monitors the performance of various
 // graphics commands.
@@ -12,7 +12,7 @@
 
 // What better place for some test code than in here and the companion
 // .cpp file. See also the bottom of this file.
-#define TESTENABLE
+//#define TESTENABLE
 
 #define RGB(r,g,b) ( ((r<<8)&0xF800) | ((g<<3)&0x07E0) | (b>>3) )
 
@@ -693,6 +693,22 @@
     RetCode_t ellipse(unsigned int x, unsigned int y, unsigned int radius1, unsigned int radius1, 
         color_t color, fill_t fillit = NOFILL);
 
+    /// Draw a filled Ellipse using the specified color
+    ///
+    /// @note As a side effect, this changes the current
+    ///     foreground color for subsequent operations.
+    ///
+    /// @param x is the horizontal center of the ellipse.
+    /// @param y is the vertical center of the ellipse.
+    /// @param radius1 defines the horizontal radius of the ellipse.
+    /// @param radius2 defines the vertical radius of the ellipse.
+    /// @param color defines the foreground color.
+    /// @param fillit defines whether the circle is filled or not.
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    RetCode_t fillellipse(unsigned int x, unsigned int y, unsigned int radius1, unsigned int radius1, 
+        color_t color, fill_t fillit = FILL);
+
     /// Draw an Ellipse
     ///
     /// Draws it using the foreground color setting.