Is the LCD module proprietary? If no, is it possible to get the spec?
thanks
And below is the Initial flow of this LCD :
void initial_ST7781(void)
{
//------------------------------------Display Control Setting-------------------------------------------//
LCD_SET_REG_MAIN(0x0001, 0x0100); //Output Direct
LCD_SET_REG_MAIN(0x0002, 0x0700); / ne Inversion
LCD_SET_REG_MAIN(0x0003, 0x1030); //Entry Mode (65K, BGR)
LCD_SET_REG_MAIN(0x0007, 0x0121); //Display Control1
LCD_SET_REG_MAIN(0x0008, 0x0302); // Porch Setting
LCD_SET_REG_MAIN(0x0009, 0x0200); //Scan Cycle
LCD_SET_REG_MAIN(0x000A, 0x0000); //FMARK off
//-----------------------------------End Display Control setting-----------------------------------------//
//-------------------------------- Power Control Registers Initial --------------------------------------//
LCD_SET_REG_MAIN(0x0010, 0x0790); //Power Control1
LCD_SET_REG_MAIN(0x0011, 0x0005); //Power Control2
LCD_SET_REG_MAIN(0x0012, 0x0000); //Power Control3
LCD_SET_REG_MAIN(0x0013, 0x0000); //Power Control4
//---------------------------------End Power Control Registers Initial -------------------------------//
LCD_DelayMs (100); //Delay 100ms
//--------------------------------- Power Supply Startup 1 Setting------------------------------------//
LCD_SET_REG_MAIN(0x0010, 0x12b0); //Power Control1
LCD_DelayMs (50); //Delay 50ms
LCD_SET_REG_MAIN(0x0011, 0x0007); //Power Control2
//--------------------------------- End Power Supply Startup 1 Setting------------------------------//
LCD_DelayMs (50); //Delay 50ms
//--------------------------------- Power Supply Startup 2 Setting------------------------------------//
LCD_SET_REG_MAIN(0x0012, 0x008c); //Power Control3
LCD_SET_REG_MAIN(0x0013, 0x1600); //Power Control4 //1700
LCD_SET_REG_MAIN(0x0029, 0x002e); / COMH setting 2a-2e //22
//--------------------------------- End Power Supply Startup 2 Setting------------------------------//
LCD_DelayMs (50); //Delay 50ms
//-------------------------------------Gamma Cluster Setting-------------------------------------------//
LCD_SET_REG_MAIN(0x0030, 0x0000);
LCD_SET_REG_MAIN(0x0031, 0x0505);
LCD_SET_REG_MAIN(0x0032, 0x0205);
LCD_SET_REG_MAIN(0x0035, 0x0206);
LCD_SET_REG_MAIN(0x0036, 0x0408);
LCD_SET_REG_MAIN(0x0037, 0x0000);
LCD_SET_REG_MAIN(0x0038, 0x0504);
LCD_SET_REG_MAIN(0x0039, 0x0206);
LCD_SET_REG_MAIN(0x003c, 0x0206);
LCD_SET_REG_MAIN(0x003d, 0x0408);
//--------------------------------------End Gamma Setting--------------------------------------------//
//----------------------------------Display Windows 240 X 320----------------------------------------//
LCD_SET_REG_MAIN(0x0050, 0x0000); // Horizontal Address Start Position
LCD_SET_REG_MAIN(0x0051, 0x00ef); // Horizontal Address End Position
LCD_SET_REG_MAIN(0x0052, 0x0000); / ertical Address Start Position
LCD_SET_REG_MAIN(0x0053, 0x013f); // Vertical Address End Position
//----------------------------------End Display Windows 240 X 320----------------------------------//
//-------------------------------------Frame Rate Setting------------------------------------------//
LCD_SET_REG_MAIN(0x0060, 0xa700); //Gate scan control
LCD_SET_REG_MAIN(0x0061, 0x0001); / n-display Area setting
LCD_SET_REG_MAIN(0x0090, 0x0033); //RTNI setting
//---------------------------------------END Frame Rate setting------------------------------------//
LCD_SET_REG_MAIN(0x0009, 0x0000); //Scan Cycle
LCD_SET_REG_MAIN(0x0007, 0x0133); //Display Control1
LCD_DelayMs (50); //Delay 50ms
}
void ST7781CPT24_Enterstandby(void)
{
LCD_SET_REG_MAIN(0x0007,0x0131);
Delayms(50); //delay 50ms
LCD_SET_REG_MAIN(0x0007,0x0020);
Delayms(50); //delay 50ms
LCD_SET_REG_MAIN(0x0010,0x0082);
}
void ST7781CPT24_Exitstandby(void)
{
LCD_SET_REG_MAIN(0x0011,0x0005);
LCD_SET_REG_MAIN(0x0010,0x12b0);
Delayms(50); //delay 50ms
LCD_SET_REG_MAIN(0x0011,0x0007);
Delayms(50); //delay 50ms
LCD_SET_REG_MAIN(0x0012,0x008c);
LCD_SET_REG_MAIN(0x0013,0x1700);
Delayms(50); //delay 50ms
LCD_SET_REG_MAIN(0x0007,0x0133);
}