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:
24:1a2ebae1d289
Parent:
23:d0eb35bbd2f3
Child:
25:daacdcf34e52
--- a/Inits/SEPS225.h	Thu Jun 18 02:25:31 2015 +0000
+++ b/Inits/SEPS225.h	Mon Jun 22 02:21:06 2015 +0000
@@ -61,6 +61,7 @@
 
     virtual void pixel(int x, int y, unsigned short color);
     virtual void window(int x, int y, int w, int h);
+    virtual void rect(int x0, int y0, int x1, int y1, unsigned short color) ;
     virtual void cls(void) ; // virtual
     virtual unsigned short pixelread(int x, int y);
     virtual void window4read(int x, int y, int w, int h);