//ST7789V+BOE2.8IPS_16BIT RST=1; Delay(20); RST=0; Delay(50); RST=1; Delay(120); WriteCommand(0x11); Delay(120); WriteCommand(0x36); WriteParameter(0x00); WriteCommand(0x3A); WriteParameter(0x05); //0x06 WriteCommand(0xB2); WriteParameter(0x0C); WriteParameter(0x0C); WriteParameter(0x00); WriteParameter(0x33); WriteParameter(0x33); WriteCommand(0xB7); WriteParameter(0x71); //VGH=14.97V,VGL=-7.67V WriteCommand(0xBB); WriteParameter(0x2E); WriteCommand(0xC0); WriteParameter(0x2C); WriteCommand(0xC2); WriteParameter(0x01); WriteCommand(0xC3); WriteParameter(0x10); WriteCommand(0xC4); WriteParameter(0x20); WriteCommand(0xC6); WriteParameter(0x0F); WriteCommand(0xD0); WriteParameter(0xA4); WriteParameter(0xA1); WriteCommand(0xE0); WriteParameter(0xD0); WriteParameter(0x08); WriteParameter(0x0E); WriteParameter(0x0A); WriteParameter(0x0A); WriteParameter(0x06); WriteParameter(0x38); WriteParameter(0x44); WriteParameter(0x50); WriteParameter(0x29); WriteParameter(0x15); WriteParameter(0x16); WriteParameter(0x33); WriteParameter(0x36); WriteCommand(0xE1); WriteParameter(0xD0); WriteParameter(0x07); WriteParameter(0x0D); WriteParameter(0x09); WriteParameter(0x08); WriteParameter(0x06); WriteParameter(0x33); WriteParameter(0x33); WriteParameter(0x4D); WriteParameter(0x28); WriteParameter(0x16); WriteParameter(0x15); WriteParameter(0x33); WriteParameter(0x35); /* //------------------------------------RGB set-----------------------------------------// WriteCommand(0xb0); WriteParameter(0x11); //RGB interface WriteParameter(0xf0); WriteCommand(0xb1); //RGB de mode ? WriteParameter(0x40); //VS HS activity level WriteParameter(0x02); //VS HS number WriteParameter(0x14); */ WriteCommand(0x21); WriteCommand(0x29);