My controller identifies as an ILI9328, but only works if initialised as an ILI9325. This fork includes a fix to force 9325 initialization when a 9328 is detected.
Dependents: TouchScreenCalibrate TouchScreenGUIDemo
Fork of UniGraphic by
Diff: Inits/IST3020.cpp
- Revision:
- 34:091b954c3205
- Parent:
- 18:ffa58f1a680a
--- a/Inits/IST3020.cpp Mon Apr 11 16:54:35 2016 +0000 +++ b/Inits/IST3020.cpp Sun Jun 21 15:23:02 2020 +0100 @@ -45,7 +45,7 @@ /* Start Initial Sequence ----------------------------------------------------*/ wr_cmd8(0xE2); // sw reset - wait_ms(10); + ThisThread::sleep_for(10); wr_cmd8(0xAE); // display off wr_cmd8(0xAB); // built-in OSC on @@ -58,11 +58,11 @@ //wr_cmd8(0xC0); // SHL select com0-com63 wr_cmd8(0x2C); // Internal Voltage Converter ON - wait_ms(10); + ThisThread::sleep_for(10); wr_cmd8(0x2E); // Internal Voltage Regulator ON - wait_ms(10); + ThisThread::sleep_for(10); wr_cmd8(0x2F); // Internal Voltage Follower ON - wait_ms(10); + ThisThread::sleep_for(10); wr_cmd8(0x20); // Regulor_Resistor_Select resistor ratio 20-27 20=4.5(default) 27=8.0, 0.5 steps set_contrast(46); //wr_cmd8(0x81); // set contrast (reference voltage register set)