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.

Dependents:   Brew

Revision:
20:14daa48ffd4c
Parent:
11:b842b8e332cb
Child:
21:ae0a4eedfc90
--- a/Display/TFT.h	Mon Mar 02 10:52:26 2015 +0000
+++ b/Display/TFT.h	Mon Mar 23 14:08:04 2015 +0000
@@ -146,8 +146,8 @@
     */
     int sizeX();
 
-    /** get display X size in pixels (native, orientation independent)
-    * @returns screen height in pixels.
+    /** get display Y size in pixels (native, orientation independent)
+    * @returns Y size in pixels
     */
     int sizeY();