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.
Diff: Protocols/Protocols.h
- Revision:
- 30:87855d03d91a
- Parent:
- 25:daacdcf34e52
- Child:
- 33:f87f06292637
diff -r 866213bb9bf0 -r 87855d03d91a Protocols/Protocols.h --- 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