108 lines
2.3 KiB
Plaintext
108 lines
2.3 KiB
Plaintext
|
|
HW_Reset();
|
||
|
|
|
||
|
|
Delay(120); //ms
|
||
|
|
|
||
|
|
Write(Command , 0x11);
|
||
|
|
|
||
|
|
Delay(120); //ms
|
||
|
|
|
||
|
|
Write(Command , 0xF0);
|
||
|
|
Write(Parameter , 0xC3);
|
||
|
|
|
||
|
|
Write(Command , 0xF0);
|
||
|
|
Write(Parameter , 0x96);
|
||
|
|
|
||
|
|
Write(Command , 0x36);
|
||
|
|
Write(Parameter , 0x48);
|
||
|
|
|
||
|
|
Write(Command , 0x3A);
|
||
|
|
Write(Parameter , 0x77);
|
||
|
|
|
||
|
|
Write(Command , 0xB4); //1-dot Inversion
|
||
|
|
Write(Parameter , 0x01);
|
||
|
|
|
||
|
|
Write(Command , 0xB7);
|
||
|
|
Write(Parameter , 0xC6);
|
||
|
|
|
||
|
|
Write(Command , 0xC0);
|
||
|
|
Write(Parameter , 0x80);
|
||
|
|
Write(Parameter , 0x64); //VGH=15V VGL=-10V
|
||
|
|
|
||
|
|
Write(Command , 0xC1);
|
||
|
|
Write(Parameter , 0x13); //VOP=4.5V
|
||
|
|
|
||
|
|
Write(Command , 0xC2);
|
||
|
|
Write(Parameter , 0xA7);
|
||
|
|
|
||
|
|
Write(Command , 0xC5);
|
||
|
|
Write(Parameter , 0x08);
|
||
|
|
|
||
|
|
Write(Command , 0xE8);
|
||
|
|
Write(Parameter , 0x40);
|
||
|
|
Write(Parameter , 0x8a);
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x29);
|
||
|
|
Write(Parameter , 0x19);
|
||
|
|
Write(Parameter , 0xA5);
|
||
|
|
Write(Parameter , 0x33);
|
||
|
|
Write(Command , 0xE0);
|
||
|
|
Write(Parameter , 0xF0);
|
||
|
|
Write(Parameter , 0x06);
|
||
|
|
Write(Parameter , 0x0B);
|
||
|
|
Write(Parameter , 0x07);
|
||
|
|
Write(Parameter , 0x06);
|
||
|
|
Write(Parameter , 0x05);
|
||
|
|
Write(Parameter , 0x2E);
|
||
|
|
Write(Parameter , 0x33);
|
||
|
|
Write(Parameter , 0x47);
|
||
|
|
Write(Parameter , 0x3A);
|
||
|
|
Write(Parameter , 0x17);
|
||
|
|
Write(Parameter , 0x16);
|
||
|
|
Write(Parameter , 0x2E);
|
||
|
|
Write(Parameter , 0x31);
|
||
|
|
|
||
|
|
Write(Command , 0xE1);
|
||
|
|
Write(Parameter , 0xF0);
|
||
|
|
Write(Parameter , 0x09);
|
||
|
|
Write(Parameter , 0x0D);
|
||
|
|
Write(Parameter , 0x09);
|
||
|
|
Write(Parameter , 0x08);
|
||
|
|
Write(Parameter , 0x23);
|
||
|
|
Write(Parameter , 0x2E);
|
||
|
|
Write(Parameter , 0x33);
|
||
|
|
Write(Parameter , 0x46);
|
||
|
|
Write(Parameter , 0x38);
|
||
|
|
Write(Parameter , 0x13);
|
||
|
|
Write(Parameter , 0x13);
|
||
|
|
Write(Parameter , 0x2C);
|
||
|
|
Write(Parameter , 0x32);
|
||
|
|
|
||
|
|
Write(Command , 0xF0);
|
||
|
|
Write(Parameter , 0x3C);
|
||
|
|
|
||
|
|
Write(Command , 0xF0);
|
||
|
|
Write(Parameter , 0x69);
|
||
|
|
|
||
|
|
Write(Command , 0x35);
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
|
||
|
|
Write(Command , 0x21);
|
||
|
|
|
||
|
|
Write(Command , 0x29);
|
||
|
|
Delay(50);
|
||
|
|
|
||
|
|
Write(Command , 0x2A); //320
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x01);
|
||
|
|
Write(Parameter , 0x3F);
|
||
|
|
|
||
|
|
Write(Command , 0x2B); //480
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x00);
|
||
|
|
Write(Parameter , 0x01);
|
||
|
|
Write(Parameter , 0xDF);
|
||
|
|
|
||
|
|
Write(Command , 0x2C);
|