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:
21:ae0a4eedfc90
Parent:
20:14daa48ffd4c
--- a/Protocols/Protocols.h	Mon Mar 23 14:08:04 2015 +0000
+++ b/Protocols/Protocols.h	Tue Mar 31 21:14:48 2015 +0000
@@ -18,8 +18,10 @@
 /** Protocol types
 */
 enum proto_t {
-    PAR_8   /**< Parallel 8bit, pins 0 to 7 */
-    ,PAR_16 /**< Parallel 16bit, pins 0 to 15 */
+    PAR_8   /**< Parallel 8bit, port pins 0 to 7 */
+    ,PAR_16 /**< Parallel 16bit, port pins 0 to 15 */
+    ,BUS_8   /**< Parallel 8bit, scattered pins */
+    ,BUS_16   /**< Parallel 16bit, scattered pins */
     ,SPI_8  /**< SPI 8bit */
     ,SPI_16 /**< SPI 16bit */
 };