Nikita Ivanykov
/
LAB_DISPLAY
7
ILI9341_Init.h
- Committer:
- troshha
- Date:
- 2019-11-13
- Revision:
- 3:9909607749dd
- Parent:
- 2:82f5f57eac91
File content as of revision 3:9909607749dd:
// This is the command sequence that initialises the ILI9341 driver // // This setup information uses simple 8 bit SPI writecommand() and writedata() functions // // See ST7735_Setup.h file for an alternative format { writecommand(0x01); wait(0.01); writecommand(0x11); wait(0.01); writecommand(0x3a); writedata(0x05); writecommand(0x26); writedata(0x04); writecommand(0xf2); writedata(0x01); writecommand(0xE0); writedata(0x3f); writedata(0x25); writedata(0x1c); writedata(0x1e); writedata(0x20); writedata(0x12); writedata(0x2a); writedata(0x90); writedata(0x24); writedata(0x11); writedata(0x00); writedata(0x00); writedata(0x00); writedata(0x00); writedata(0x00); writecommand(0xE1); writedata(0x20); writedata(0x20); writedata(0x20); writedata(0x20); writedata(0x05); writedata(0x00); writedata(0x15); writedata(0xa7); writedata(0x3d); writedata(0x18); writedata(0x25); writedata(0x2a); writedata(0x2b); writedata(0x2b); writedata(0x3a); writecommand(0xb1); writedata(0x08); writedata(0x08); writecommand(0xb4); writedata(0x07); writecommand(0xc0); writedata(0x0a); writedata(0x02); writecommand(0xc1); writedata(0x02); writecommand(0xc5); writedata(0x50); writedata(0x5b); writecommand(0xc7); writedata(0x40); writecommand(0x2a); writedata(0x00); writedata(0x00); writedata(0x00); writedata(0x7f); writecommand(0x2a); writedata(0x00); writedata(0x00); writedata(0x00); writedata(0x9f); writedata(250); writecommand(0x36); writedata(0xc8); writecommand(0x29); }