HW_Reset(); Delay(120); //Delay 120ms WriteCom(0x11); //Sleep out Delay(120); //Delay 120ms WriteCom(0xB1); WriteData(0x05); WriteData(0x3A); WriteData(0x3A); WriteCom(0xB2); WriteData(0x05); WriteData(0x3A); WriteData(0x3A); WriteCom(0xB3); WriteData(0x05); WriteData(0x3A); WriteData(0x3A); WriteData(0x05); WriteData(0x3A); WriteData(0x3A); WriteCom(0xB4); //Dot inversion WriteData(0x07); WriteCom(0xC0); WriteData(0x44); WriteData(0x04); WriteData(0x04); WriteCom(0xC1); WriteData(0xC0); WriteCom(0xC2); WriteData(0x0D); WriteData(0x00); WriteCom(0xC3); WriteData(0x8D); WriteData(0x6A); WriteCom(0xC4); WriteData(0x8D); WriteData(0xEE); WriteCom(0xC5); WriteData(0x01); WriteCom(0xE0); WriteData(0x0F); WriteData(0x11); WriteData(0x02); WriteData(0x01 ); WriteData(0x0A); WriteData(0x01); WriteData(0x00 ; WriteData(0x01); WriteData(0x06); WriteData(0x0E); WriteData(0x1B); WriteData(0x38); WriteData(0x0A); WriteData(0x0C); WriteData(0x03); WriteData(0x1F ); WriteCom(0xE1); WriteData(0x10); WriteData(0x09); WriteData(0x04); WriteData(0x03); WriteData(0x0B); WriteData(0x02); WriteData(0x00); WriteData(0x02); WriteData(0x03); WriteData(0x07); WriteData(0x10); WriteData(0x33); WriteData(0x0B); WriteData(0x0E); WriteData(0x07); WriteData(0x1E); WriteCom(0x35); WriteData(0x00); WriteCom(0x3A); //65k mode WriteData(0x05); WriteCom(0x36); WriteData(0xC8); WriteCom(0x29); //Display on WriteCom(0x2A); //Set Column Address WriteData(0x00); WriteData(0x18); WriteData(0x00); WriteData(0x67); WriteCom(0x2B); //Set Page Address WriteData(0x00); WriteData(0x00); WriteData(0x00); WriteData(0x9f); WriteCom(0x2C);