Basically i glued Peter Drescher and Simon Ford libs in a GraphicsDisplay class, then derived TFT or LCD class (which inherits Protocols class), then the most derived ones (Inits), which are per-display and are the only part needed to be adapted to diff hw.

Fork of UniGraphic by GraphicsDisplay

Revision:
4:12ba0ecc2c1f
Parent:
0:75ec1b3cde17
--- a/Graphics/TextDisplay.h	Sat Feb 14 17:42:21 2015 +0000
+++ b/Graphics/TextDisplay.h	Sun Feb 15 20:06:07 2015 +0000
@@ -98,8 +98,8 @@
     int _row;
 
     // colours
-    uint16_t _foreground;
-    uint16_t _background;
+    volatile uint16_t _foreground;
+    volatile uint16_t _background;
     char *_path;
 };