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:
15:b9483ba842c8
Parent:
10:668cf78ff93a
Child:
20:14daa48ffd4c
diff -r 29bab588ba75 -r b9483ba842c8 Display/LCD.h
--- a/Display/LCD.h	Sun Feb 22 18:55:54 2015 +0000
+++ b/Display/LCD.h	Mon Feb 23 16:05:16 2015 +0000
@@ -8,6 +8,10 @@
 #include "SPI16.h"
 #include "Protocols.h"
 
+// undefine the KL43Z and KL46Z LCD macro
+#ifdef LCD
+#undef LCD
+#endif
 
 /** Draw mode
   * NORMAl