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
Diff: Graphics/TextDisplay.h
- Revision:
- 4:12ba0ecc2c1f
- Parent:
- 0:75ec1b3cde17
diff -r 48f3282c2be8 -r 12ba0ecc2c1f Graphics/TextDisplay.h --- a/Graphics/TextDisplay.h Sat Feb 14 17:42:21 2015 +0000 +++ b/Graphics/TextDisplay.h Sun Feb 15 20:06:07 2015 +0000 @@ -98,8 +98,8 @@ int _row; // colours - uint16_t _foreground; - uint16_t _background; + volatile uint16_t _foreground; + volatile uint16_t _background; char *_path; };