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: Protocols/PAR16.cpp
- Revision:
- 34:c66986d80f72
- Parent:
- 27:acb2594b8aa4
--- a/Protocols/PAR16.cpp Mon Feb 06 12:29:33 2017 +0000 +++ b/Protocols/PAR16.cpp Tue Jan 25 17:57:55 2022 +0000 @@ -214,15 +214,15 @@ } void PAR16::hw_reset() { - wait_ms(15); + thread_sleep_for(15); _DC = 1; _CS = 1; _WR = 1; _RD = 1; _reset = 0; // display reset - wait_ms(2); + thread_sleep_for(2); _reset = 1; // end reset - wait_ms(100); + thread_sleep_for(100); } void PAR16::BusEnable(bool enable) {