/* 1.2 CPT 2.9 Inch Initial Code*/ Void ILI9481_CPT_Initial_Code(void) { /* VCI=2.8V*/ /************** 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(100); /* Delay 100 ms*/ /************** Start Initial Sequence **********//*/ (0x11), TFTLCD_DELAY8, 20, (0xD0),0x07,0x42,0x1C, (0xD1),0x,0x02,0x0F, (0xD2),0x01,0x11, (0xC0),0x10,0x35,0x,0x02,0x11, (0xC5), LCD_ILI9481_INDEX(0x03); (0xC8),0x,0x30,0x36,0x45,0x04,0x16,0x37,0x75,0x77,0x54,0x0F,0x, (0xE4),0xA0, (0xF0),0x01, (0xF3),0x02,0x1A) ; (0x36),0x0A, (0x2A),0x,0x,0x01,0x3F, (0x2B),0x,0x,0x01,0xAD, TFTLCD_DELAY8, 120, (0x29), } /* 2.2 PVI 3.5 Inch Initial Code*/ Void ILI9481_CPT_Initial_Code(void) { /* VCI=2.8V*/ /************** 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(100); /* Delay 100 ms*/ /************** Start Initial Sequence **********//*/ (0x11), TFTLCD_DELAY8, 20, (0xD0),0x07,0x41,0x1D, (0xD1),0x,0x2B,0x1F, (0xD2),0x01,0x11, (0xC0),0x,0x3B,0x,0x02,0x11, (0xC5),0x03, (0xC8),0x,0x14,0x33,0x10,0x,0x16,0x44,0x36,0x77,0x,0x0f,0x, (0xE4),0xA0, (0xF0),0x01, (0xF3),0x40,0x0A, (0x36),0x0A, TFTLCD_DELAY8, 120, (0x29), /* 3.2. AUO 3.17 Inch Initial Code*/ Void ILI9481_AUO_Initial_Code(void) { /* VCI=2.8V*/ /************** 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(100); /* Delay 100 ms*/ /************** Start Initial Sequence **********//*/ (0x11), TFTLCD_DELAY8, 20, (0xD0),0x07,0x40,0x1D, (0xD1),0x,0x18,0x13, (0xD2),0x01,0x11, (0xC0),0x10,0x3B,0x,0x02,0x11, (0xC5),0x03, (0xC8),0x,0x44,0x06,0x44,0x0A,0x08,0x17,0x33,0x77,0x44,0x08,0x0c, (0xE4),0xA0, (0xF0),0x01, (0x36),0x0A, TFTLCD_DELAY8, 120, (0x29), /* 4.2. CMO 3.5 Inch Initial Code*/ (0x01), DelayX1ms(120); (0x11), DelayX1ms(120); /*Power Setting*/ (0xD0),0x07,0x41,0x1D, DelayX1ms(20); /*Vcom Setting*/ (0xD1),0x00,0x1C,/*18*/ 0x1F, /*Power Setting for normal mode*/ (0xD2),0x01,0x11, (0xC0), /*Panel Driving Setting*/ 0x00,0x3B,0x00,0x02,0x11, (0xC6),0x83, (0xC8),0x00,0x26,0x21,0x00,0x00,0x1F,0x65,0x23,0x77,0x00,0x0F,0x00, (0xF0),0x01, /* (0xE4),*/ /*LCD_ILI9481_INDEX(0xA0,*/ (0x36),0x48,/*0x08 _BGR,0x _RGB*/ /*Set display on*/ (0x29), (0xB4),0x11, (0x2C),