I've cracked open the Adafruit_ILI9341 library
https://github.com/adafruit/Adafruit_ILI9341
to see exactly how the screen is being configured, and I had a question about the init sequence.
It seems that at the beginning, there are a number of "mystery memory address writes" to the ILI9341's memory that look like this:
Code: Select all
if (hwSPI) spi_begin();
writecommand(0xEF);
writedata(0x03);
writedata(0x80);
writedata(0x02);
writecommand(0xCF);
writedata(0x00);
writedata(0XC1);
writedata(0X30);
writecommand(0xED);
writedata(0x64);
writedata(0x03);
writedata(0X12);
writedata(0X81);
writecommand(0xE8);
writedata(0x85);
writedata(0x00);
writedata(0x78);
writecommand(0xCB);
writedata(0x39);
writedata(0x2C);
writedata(0x00);
writedata(0x34);
writedata(0x02);
writecommand(0xF7);
writedata(0x20);
writecommand(0xEA);
writedata(0x00);
writedata(0x00);
Code: Select all
writecommand(0xEF);
writedata(0x03);
writedata(0x80);
writedata(0x02);
Thanks! (I can make a pull request with comments for the rest of these once I get a better handle on what's going on.)