acidportal- 😈 Worlds smallest Evil Portal on a LilyGo T-QT |
git clone git://git.acid.vegas/acidportal.git |
Log | Files | Refs | Archive | README | LICENSE |
ILI9488_Init.h (2272B)
1 2 // This is the command sequence that initialises the ILI9488 driver 3 // 4 // This setup information uses simple 8 bit SPI writecommand() and writedata() functions 5 // 6 // See ST7735_Setup.h file for an alternative format 7 8 9 // Configure ILI9488 display 10 11 writecommand(0xE0); // Positive Gamma Control 12 writedata(0x00); 13 writedata(0x03); 14 writedata(0x09); 15 writedata(0x08); 16 writedata(0x16); 17 writedata(0x0A); 18 writedata(0x3F); 19 writedata(0x78); 20 writedata(0x4C); 21 writedata(0x09); 22 writedata(0x0A); 23 writedata(0x08); 24 writedata(0x16); 25 writedata(0x1A); 26 writedata(0x0F); 27 28 writecommand(0XE1); // Negative Gamma Control 29 writedata(0x00); 30 writedata(0x16); 31 writedata(0x19); 32 writedata(0x03); 33 writedata(0x0F); 34 writedata(0x05); 35 writedata(0x32); 36 writedata(0x45); 37 writedata(0x46); 38 writedata(0x04); 39 writedata(0x0E); 40 writedata(0x0D); 41 writedata(0x35); 42 writedata(0x37); 43 writedata(0x0F); 44 45 writecommand(0XC0); // Power Control 1 46 writedata(0x17); 47 writedata(0x15); 48 49 writecommand(0xC1); // Power Control 2 50 writedata(0x41); 51 52 writecommand(0xC5); // VCOM Control 53 writedata(0x00); 54 writedata(0x12); 55 writedata(0x80); 56 57 writecommand(TFT_MADCTL); // Memory Access Control 58 writedata(0x48); // MX, BGR 59 60 writecommand(0x3A); // Pixel Interface Format 61 #if defined (TFT_PARALLEL_8_BIT) || defined (TFT_PARALLEL_16_BIT) || defined (RPI_DISPLAY_TYPE) 62 writedata(0x55); // 16 bit colour for parallel 63 #else 64 writedata(0x66); // 18 bit colour for SPI 65 #endif 66 67 writecommand(0xB0); // Interface Mode Control 68 writedata(0x00); 69 70 writecommand(0xB1); // Frame Rate Control 71 writedata(0xA0); 72 73 writecommand(0xB4); // Display Inversion Control 74 writedata(0x02); 75 76 writecommand(0xB6); // Display Function Control 77 writedata(0x02); 78 writedata(0x02); 79 writedata(0x3B); 80 81 writecommand(0xB7); // Entry Mode Set 82 writedata(0xC6); 83 84 writecommand(0xF7); // Adjust Control 3 85 writedata(0xA9); 86 writedata(0x51); 87 writedata(0x2C); 88 writedata(0x82); 89 90 writecommand(TFT_SLPOUT); //Exit Sleep 91 delay(120); 92 93 writecommand(TFT_DISPON); //Display on 94 delay(25); 95 96 // End of ILI9488 display configuration 97 98 99