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:   testUniGraphic_150217 maze_TFT_MMA8451Q TFT_test_frdm-kl25z TFT_test_NUCLEO-F411RE ... more

Revision:
30:87855d03d91a
Parent:
25:daacdcf34e52
Child:
33:f87f06292637
--- a/Protocols/Protocols.h	Sat Nov 28 18:37:19 2015 +0000
+++ b/Protocols/Protocols.h	Sun Nov 29 19:58:47 2015 +0000
@@ -13,6 +13,10 @@
 #define RGB24to16(r,g,b)  (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue
 #define BGR2RGB(color) (((color&0x1F)<<11) | (color&0x7E0) | ((color&0xF800)>>11))
 
+#define FLIP_NONE   0
+#define FLIP_X      1
+#define FLIP_Y      2
+
 //#define USE_CS
 
 /** Protocol types