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:
15:b9483ba842c8
Parent:
13:d8c593fa7705
Child:
17:1dafb896c6f5
--- a/Inits/SSD1306.cpp	Sun Feb 22 18:55:54 2015 +0000
+++ b/Inits/SSD1306.cpp	Mon Feb 23 16:05:16 2015 +0000
@@ -132,5 +132,5 @@
 {
     contrast = o;
   
-    wr_cmd16(0x8100|(o));
+    wr_cmd16(0x8100|(o&0xFF));
 }