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:
8:26757296c79d
Parent:
7:bb0383b91104
Child:
10:668cf78ff93a
diff -r bb0383b91104 -r 26757296c79d Display/TFT.h
--- a/Display/TFT.h	Tue Feb 17 11:02:06 2015 +0000
+++ b/Display/TFT.h	Tue Feb 17 17:54:14 2015 +0000
@@ -47,10 +47,10 @@
     */
     virtual void window(int x, int y, int w, int h);
     
-    /** Read pixel color at current location
+    /** Read pixel color at location
     * @param x is the horizontal offset to this pixel.
     * @param y is the vertical offset to this pixel.
-    * @param color defines the color for the pixel.
+    * @returns 16bit color.
     */
     virtual unsigned short pixelread(int x, int y);