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: Inits/ILI9486.cpp
- Revision:
- 7:bb0383b91104
- Parent:
- 4:12ba0ecc2c1f
- Child:
- 9:1749ae993cfe
diff -r 8356d48a07db -r bb0383b91104 Inits/ILI9486.cpp --- a/Inits/ILI9486.cpp Mon Feb 16 01:18:29 2015 +0000 +++ b/Inits/ILI9486.cpp Tue Feb 17 11:02:06 2015 +0000 @@ -19,9 +19,8 @@ { hw_reset(); BusEnable(true); + identify(); // will collect tftID and set mipistd flag init(); - mipistd=false; - scrollbugfix=1; // when scrolling 1 line, the last line disappears, set to 1 to fix it set_orientation(0); cls(); locate(0,0); @@ -31,9 +30,8 @@ { hw_reset(); //TFT class forwards to Protocol class BusEnable(true); //TFT class forwards to Protocol class + identify(); // will collect tftID and set mipistd flag init(); // per display custom init cmd sequence, implemented here - mipistd=false; - scrollbugfix=1; // when scrolling 1 line, the last line disappears, set to 1 to fix it set_orientation(0); //TFT class does for MIPI standard and some ILIxxx cls(); locate(0,0);