{ LCD_RESET=1; Delayms(10); LCD_RESET=0; Delayms(10); LCD_RESET=1; Delayms(120); WriteComm(0x11); Delay(120); WriteComm(0x36); WriteData(0x00); WriteComm(0x3A); WriteData(0x05); WriteComm(0xB2); WriteData(0x0C); WriteData(0x0C); WriteData(0x00); WriteData(0x33); WriteData(0x33); WriteComm(0xB7); WriteData(0x00); WriteComm(0xBB); WriteData(0x36); //Vcom=1.45V WriteComm(0xC0); WriteData(0x2C); WriteComm(0xC2); WriteData(0x01); WriteComm(0xC3); WriteData(0x13); //GVDD=4.8V 颜色深度 WriteComm(0xC4); WriteData(0x20); //VDV, 0x20:0v WriteComm(0xC6); WriteData(0x0F); //0x0F:60Hz WriteComm(0xD0); WriteData(0xA4); WriteData(0xA1); WriteComm(0xD6); WriteData(0xA1); WriteComm( 0xE0); WriteData( 0xF0); WriteData( 0x08); WriteData( 0x0E); WriteData( 0x09); WriteData( 0x08); WriteData( 0x04); WriteData( 0x2F); WriteData( 0x33); WriteData( 0x45); WriteData( 0x36); WriteData( 0x13); WriteData( 0x12); WriteData( 0x2A); WriteData( 0x2D); WriteComm( 0xE1); WriteData( 0xF0); WriteData( 0x0E); WriteData( 0x12); WriteData( 0x0C); WriteData( 0x0A); WriteData( 0x15); WriteData( 0x2E); WriteData( 0x32); WriteData( 0x44); WriteData( 0x39); WriteData( 0x17); WriteData( 0x18); WriteData( 0x2B); WriteData( 0x2F); WriteComm(0x21); WriteComm(0x29); } /**************显示地址*******************/ { WriteComm(0x2A); //Column Address Set WriteData(0x00); WriteData(0x00); //0 WriteData(0x00); WriteData(0xEF); //239 WriteComm(0x2B); //Row Address Set WriteData(0x00); WriteData(0x00); //0 WriteData(0x00); WriteData(0xEF); //239 } /**********SLEEP OUT***************/ { WriteComm(0x11); //Sleep out Delayms(120); //延时120ms WriteComm(0x29); } /**********SLEEP IN***************/ { WriteComm(0x28); WriteComm(0x10); //Sleep in Delayms(120); //延时120ms }