Void ILI9488_CTC3.5_G22_Initial_Code(void)
{// VCI=2.8V 13-2-22
//************* Reset LCD Driver ****************//
LCD_nRESET = 1;
Delayms(1); // Delay 1ms
LCD_nRESET = 0;
Delayms(10); // Delay 10ms // This delay time is necessary
LCD_nRESET = 1;
Delayms(120); // Delay 120 ms
//************* Start Initial Sequence **********//
LCD_ILI9488_CMD(0xE0);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x04);
LCD_ILI9488_INDEX(0x0E);
LCD_ILI9488_INDEX(0x08);
LCD_ILI9488_INDEX(0x17);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x40);
LCD_ILI9488_INDEX(0x79);
LCD_ILI9488_INDEX(0x4D);
LCD_ILI9488_INDEX(0x07);
LCD_ILI9488_INDEX(0x0E);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x1A);
LCD_ILI9488_INDEX(0x1D);
LCD_ILI9488_INDEX(0x0F);
LCD_ILI9488_CMD(0xE1);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x1B);
LCD_ILI9488_INDEX(0x1F);
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x10);
LCD_ILI9488_INDEX(0x05);
LCD_ILI9488_INDEX(0x32);
LCD_ILI9488_INDEX(0x34);
LCD_ILI9488_INDEX(0x43);
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x09);
LCD_ILI9488_INDEX(0x33);
LCD_ILI9488_INDEX(0x37);
LCD_ILI9488_INDEX(0x0F);
LCD_ILI9488_CMD(0xC0);
LCD_ILI9488_INDEX(0x18);
LCD_ILI9488_INDEX(0x16);
LCD_ILI9488_CMD(0xC1);
LCD_ILI9488_INDEX(0x41);
LCD_ILI9488_CMD(0xC5);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x22); //2b
LCD_ILI9488_INDEX(0x80);
LCD_ILI9488_CMD(0x36);
LCD_ILI9488_INDEX(0x08);
LCD_ILI9488_CMD(0x3A); Interface Mode Control
LCD_ILI9488_INDEX(0x66);
LCD_ILI9488_CMD(0XB0); //Interface Mode Control
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_CMD(0xB1); //Frame rate 70HZ
LCD_ILI9488_INDEX(0xB0);
LCD_ILI9488_CMD(0xB4);
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_CMD(0xB6); //RGB/MCU Interface Control
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x22);
LCD_ILI9488_CMD(0xE9);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_CMD(0XF7);
LCD_ILI9488_INDEX(0xA9);
LCD_ILI9488_INDEX(0x51);
LCD_ILI9488_INDEX(0x2C);
LCD_ILI9488_INDEX(0x82);
LCD_ILI9488_CMD(0x11);
Delayms(120);
LCD_ILI9488_CMD(0x29);
}
Void ILI9488_EnterSleep_Code(void)
{
LCD_ILI9488_CMD(0x28)
Delayms(10);
LCD_ILI9488_CMD(0x10);
Delayms(120);
}
Void ILI9488_ExitSleep_Code(void)
{
LCD_ILI9488_CMD(0x11);
Delayms(120);
LCD_ILI9488_CMD(0x29)
}
离线
有SPI的话肯定是用SPI初始化,要不然不就是多余的吗
离线
一般都是可以的。用spi初始化就不用太特定去写屏幕驱动,配下参数就行。如果用dsi的命令去初始化就要写驱动
离线