My controller identifies as an ILI9328, but only works if initialised as an ILI9325. This fork includes a fix to force 9325 initialization when a 9328 is detected.

Dependents:   TouchScreenCalibrate TouchScreenGUIDemo

Fork of UniGraphic by GraphicsDisplay

Revision:
33:5743f9c16aa2
Parent:
0:75ec1b3cde17
--- a/Graphics/TextDisplay.cpp	Mon Mar 28 10:48:45 2016 +0000
+++ b/Graphics/TextDisplay.cpp	Mon Apr 11 16:54:35 2016 +0000
@@ -54,14 +54,22 @@
     return -1;
 }
         
-void TextDisplay::foreground(uint16_t colour) {
+void TextDisplay::setForeground(uint16_t colour) {
     _foreground = colour;
 }
 
-void TextDisplay::background(uint16_t colour) {
+void TextDisplay::setBackground(uint16_t colour) {
     _background = colour;
 }
 
+uint16_t TextDisplay::getForeground() {
+    return _foreground;
+}
+
+uint16_t TextDisplay::getBackground() {
+    return _background;
+}
+
 bool TextDisplay::claim (FILE *stream) {
     if ( _path == NULL) {
         fprintf(stderr, "claim requires a name to be given in the instantioator of the TextDisplay instance!\r\n");