ST7789T3 and ST7789P3 have different resolutions but use the same library without any changes. #3735
Unanswered
NatachaJee
asked this question in
Q&A - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, I used the ST7789T3, and the colors were satisfactory. Then, I tried using the ST7789P3, but the colors were not as good. I attempted to adjust the ST7789_Init, but it didn’t work. Can anyone suggest a solution?
ST7789T3 more smooth than ST7789P3 like a picture
This is configuration command. How can I adjust it?
/初始化****/
{
RESET=1;
Delay(10);
RESET=0;
Delay(10);
RESET=1;
Delay(120); //延时120ms
Write(Command , 0x11);
Delay(120);
Write(Command , 0x36);
Write(Parameter , 0x00);
Write(Command , 0x3A);
Write(Parameter , 0x05);
Write(Command , 0x35);
Write(Parameter , 0x00);
Write(Command , 0xB2);
Write(Parameter , 0x0C);
Write(Parameter , 0x0C);
Write(Parameter , 0x00);
Write(Parameter , 0x33);
Write(Parameter , 0x33);
Write(Command , 0xB7); //VGH=14V,VGL=-10V
Write(Parameter , 0x55);
Write(Command , 0xBB); //Vcom
Write(Parameter , 0x27);
Write(Command , 0xC0);
Write(Parameter , 0x2C);
Write(Command , 0xC2);
Write(Parameter , 0x01);
Write(Command , 0xC3);
Write(Parameter , 0x1F);
Write(Command , 0xC6);
Write(Parameter , 0x0F); //Dot
Write(Command , 0xD0);
Write(Parameter , 0xA7);
Write(Command , 0xD0);
Write(Parameter , 0xA4);
Write(Parameter , 0xA1);
Write(Command , 0xD6);
Write(Parameter , 0xA1); //sleep in后,gate输出为GND
Write(Command , 0xE0);
Write(Parameter , 0xF0);
Write(Parameter , 0x07);
Write(Parameter , 0x0C);
Write(Parameter , 0x0C);
Write(Parameter , 0x0A);
Write(Parameter , 0x06);
Write(Parameter , 0x28);
Write(Parameter , 0x43);
Write(Parameter , 0x40);
Write(Parameter , 0x38);
Write(Parameter , 0x11);
Write(Parameter , 0x11);
Write(Parameter , 0x29);
Write(Parameter , 0x31);
Write(Command , 0xE1);
Write(Parameter , 0xF0);
Write(Parameter , 0x03);
Write(Parameter , 0x07);
Write(Parameter , 0x05);
Write(Parameter , 0x04);
Write(Parameter , 0x10);
Write(Parameter , 0x28);
Write(Parameter , 0x33);
Write(Parameter , 0x40);
Write(Parameter , 0x3A);
Write(Parameter , 0x17);
Write(Parameter , 0x17);
Write(Parameter , 0x2D);
Write(Parameter , 0x37);
Write(Command , 0x21);
Write(Command , 0x29);
}
/设置显示地址*****/
{
Write(Command , 0x2A); //Column Address Set
Write(Parameter , 0x00);
Write(Parameter , 0x23); //35
Write(Parameter , 0x00);
Write(Parameter , 0xCC); //204
Write(Command , 0x2B); //Row Address Set
Write(Parameter , 0x00);
Write(Parameter , 0x00); //0
Write(Parameter , 0x01);
Write(Parameter , 0x3F); //319
Write(Command , 0x2C);
}
/SLEEP IN*****/
void EnterSleep(void)
{
Write(Command ,0x28);
Write(Command ,0x10);
Delay(120); //延时120ms
}
/SLEEP OUT*****/
void ExitSleep(void)
{
Write(Command ,0x11);
Delay(120); //延时120ms
Write(Command ,0x29);
}
Beta Was this translation helpful? Give feedback.
All reactions