102 lines
2.2 KiB
Plaintext
102 lines
2.2 KiB
Plaintext
HW_Reset();
|
||
|
||
Delay(120);
|
||
|
||
Write(Command , 0x11);
|
||
|
||
Delay(120);
|
||
|
||
Write(Command , 0x36);
|
||
Write(Parameter , 0x00);
|
||
|
||
Write(Command , 0x3A);
|
||
Write(Parameter , 0x05);
|
||
|
||
Write(Command , 0xB2);
|
||
Write(Parameter , 0x0C);
|
||
Write(Parameter , 0x0C);
|
||
Write(Parameter , 0x00);
|
||
Write(Parameter , 0x33);
|
||
Write(Parameter , 0x33);
|
||
|
||
Write(Command , 0xB7);
|
||
Write(Parameter , 0x72);
|
||
|
||
Write(Command , 0xBB);
|
||
Write(Parameter , 0x3D); //Vcom=1.625V
|
||
|
||
Write(Command , 0xC2);
|
||
Write(Parameter , 0x01);
|
||
|
||
Write(Command , 0xC3);
|
||
Write(Parameter , 0x19); //GVDD=4.8V
|
||
|
||
Write(Command , 0xC4);
|
||
Write(Parameter , 0x20); //VDV, 0x20:0v
|
||
|
||
Write(Command , 0xC6);
|
||
Write(Parameter , 0x0F); //0x0F:60Hz
|
||
|
||
Write(Command , 0xD0);
|
||
Write(Parameter , 0xA4);
|
||
Write(Parameter , 0xA1);
|
||
|
||
Write(Command , 0xE0);
|
||
Write(Parameter , 0x70);
|
||
Write(Parameter , 0x04);
|
||
Write(Parameter , 0x08);
|
||
Write(Parameter , 0x09);
|
||
Write(Parameter , 0x09);
|
||
Write(Parameter , 0x05);
|
||
Write(Parameter , 0x2A);
|
||
Write(Parameter , 0x33);
|
||
Write(Parameter , 0x41);
|
||
Write(Parameter , 0x07);
|
||
Write(Parameter , 0x13);
|
||
Write(Parameter , 0x13);
|
||
Write(Parameter , 0x29);
|
||
Write(Parameter , 0x2F);
|
||
|
||
Write(Command , 0xE1);
|
||
Write(Parameter , 0x70);
|
||
Write(Parameter , 0x03);
|
||
Write(Parameter , 0x09);
|
||
Write(Parameter , 0x0A);
|
||
Write(Parameter , 0x09);
|
||
Write(Parameter , 0x06);
|
||
Write(Parameter , 0x2B);
|
||
Write(Parameter , 0x34);
|
||
Write(Parameter , 0x41);
|
||
Write(Parameter , 0x07);
|
||
Write(Parameter , 0x12);
|
||
Write(Parameter , 0x14);
|
||
Write(Parameter , 0x28);
|
||
Write(Parameter , 0x2E);
|
||
|
||
|
||
Write(Command , 0x21);
|
||
|
||
Write(Command , 0x29);
|
||
|
||
|
||
|
||
Write(Command , 0x2A); //Column Address Set
|
||
Write(Parameter , 0x00);
|
||
Write(Parameter , 0x00); //0
|
||
Write(Parameter , 0x00);
|
||
Write(Parameter , 0xEF); //239
|
||
|
||
Write(Command , 0x2B); //Row Address Set
|
||
Write(Parameter , 0x00);
|
||
Write(Parameter , 0x00); //0
|
||
Write(Parameter , 0x00);
|
||
Write(Parameter , 0xEF); //239
|
||
|
||
Write(Command , 0x2C);
|
||
|
||
/*<2A><><EFBFBD>ѹ<EFBFBD>Ȧ,<2C><><EFBFBD><EFBFBD>˯<EFBFBD><CBAF><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>д
|
||
Write(Command , 0x28);
|
||
Write(Command , 0x10);
|
||
Write(Command , 0xD6);
|
||
Write(Parameter , 0xA1);
|
||
*/ |