// R185A3D-00X-LCM-InitialCode// // BOE 1.80" 360*360 IPS 圆屏 ST77916// // 2023.08.09 Gamma 2.2 // SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF2);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9B);SPI_WriteData(0x51);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x86);SPI_WriteData(0x53);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF2);SPI_WriteData(0x80);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x28);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF2);SPI_WriteData(0x28);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x83);SPI_WriteData(0xE0);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x84);SPI_WriteData(0x61);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF2);SPI_WriteData(0x82);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x01);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF1);SPI_WriteData(0x01);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB0);SPI_WriteData(0x54);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB1);SPI_WriteData(0x3F);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB2);SPI_WriteData(0x2A);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB4);SPI_WriteData(0x46);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB5);SPI_WriteData(0x34);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB6);SPI_WriteData(0xD5);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB7);SPI_WriteData(0x30);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB8);SPI_WriteData(0x04);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBA);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBB);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBC);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBD);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC0);SPI_WriteData(0x80);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC1);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC2);SPI_WriteData(0x37);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC3);SPI_WriteData(0x80);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC4);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC5);SPI_WriteData(0x37);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC6);SPI_WriteData(0xA9);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC7);SPI_WriteData(0x41);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC8);SPI_WriteData(0x51);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC9);SPI_WriteData(0xA9);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xCA);SPI_WriteData(0x41);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xCB);SPI_WriteData(0x51);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD0);SPI_WriteData(0x91);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD1);SPI_WriteData(0x68);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD2);SPI_WriteData(0x69);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF5);SPI_WriteData(0x00);SPI_WriteData(0xA5);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xDD);SPI_WriteData(0x35);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xDE);SPI_WriteData(0x35);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF1);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE0);SPI_WriteData(0x70);SPI_WriteData(0x09);SPI_WriteData(0x12);SPI_WriteData(0x0C);SPI_WriteData(0x0B);SPI_WriteData(0x27);SPI_WriteData(0x38);SPI_WriteData(0x54);SPI_WriteData(0x4E);SPI_WriteData(0x19);SPI_WriteData(0x15);SPI_WriteData(0x15);SPI_WriteData(0x2C);SPI_WriteData(0x2F);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE1 );SPI_WriteData(0x70);SPI_WriteData(0x08);SPI_WriteData(0x11);SPI_WriteData(0x0C);SPI_WriteData(0x0B);SPI_WriteData(0x27);SPI_WriteData(0x38);SPI_WriteData(0x43);SPI_WriteData(0x4C);SPI_WriteData(0x18);SPI_WriteData(0x14);SPI_WriteData(0x14);SPI_WriteData(0x2B);SPI_WriteData(0x2D);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF3);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE0);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE1);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE2);SPI_WriteData(0x0B);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE3);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE4);SPI_WriteData(0xE0);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE5);SPI_WriteData(0x06);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE6);SPI_WriteData(0x21);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE7);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE8);SPI_WriteData(0x05);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xE9);SPI_WriteData(0x82);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xEA);SPI_WriteData(0xDF);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xEB);SPI_WriteData(0x89);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xEC);SPI_WriteData(0x20);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xED);SPI_WriteData(0x14);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xEE);SPI_WriteData(0xFF);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xEF);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF8);SPI_WriteData(0xFF);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF9);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFA);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFB);SPI_WriteData(0x30);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFC);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFD);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFE);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xFF);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x60);SPI_WriteData(0x42);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x61);SPI_WriteData(0xE0);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x62);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x63);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x64);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x65);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x66);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x67);SPI_WriteData(0x03);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x68);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x69);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x6A);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x6B);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x70);SPI_WriteData(0x42);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x71);SPI_WriteData(0xE0);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x72);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x73);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x74);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x75);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x76);SPI_WriteData(0x40);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x77);SPI_WriteData(0x03);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x78);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x79);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x7A);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x7B);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x80);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x81);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x82);SPI_WriteData(0x04);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x83);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x84);SPI_WriteData(0xDC);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x85);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x86);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x87);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x88);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x89);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8A);SPI_WriteData(0x06);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8B);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8C);SPI_WriteData(0xDE);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8D);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8E);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x8F);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x90);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x91);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x92);SPI_WriteData(0x08);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x93);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x94);SPI_WriteData(0xE0);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x95);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x96);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x97);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x98);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x99);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9A);SPI_WriteData(0x0A);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9B);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9C);SPI_WriteData(0xE2);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9D);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9E);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x9F);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA0);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA1);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA2);SPI_WriteData(0x03);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA4);SPI_WriteData(0xDB);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA6);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA7);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA8);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA9);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAA);SPI_WriteData(0x05);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAB);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAC);SPI_WriteData(0xDD);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAD);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAE);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xAF);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB0);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB1);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB2);SPI_WriteData(0x07);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB3);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB4);SPI_WriteData(0xDF);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB5);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB6);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB7);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB8);SPI_WriteData(0x38);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xB9);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBA);SPI_WriteData(0x09);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBB);SPI_WriteData(0x02);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBC);SPI_WriteData(0xE1);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBD);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBE);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xBF);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC0);SPI_WriteData(0x22);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC1);SPI_WriteData(0xAA);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC2);SPI_WriteData(0x65);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC3);SPI_WriteData(0x74);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC4);SPI_WriteData(0x47);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC5);SPI_WriteData(0x56);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC6);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC7);SPI_WriteData(0x88);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC8);SPI_WriteData(0x99);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xC9);SPI_WriteData(0x33);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD0);SPI_WriteData(0x11);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD1);SPI_WriteData(0xAA);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD2);SPI_WriteData(0x65);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD3);SPI_WriteData(0x74);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD4);SPI_WriteData(0x47);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD5);SPI_WriteData(0x56);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD6);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD7);SPI_WriteData(0x88);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD8);SPI_WriteData(0x99);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xD9);SPI_WriteData(0x33);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF3);SPI_WriteData(0x01);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x01);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF1);SPI_WriteData(0x01);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA0);SPI_WriteData(0x0B);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2A);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2B);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2C);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2D);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2E);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x2F);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x30);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x31);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x32);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA3);SPI_WriteData(0x33);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xA5);SPI_WriteData(0xC3);SPI_CS=1; Delay(1); SPI_CS=0;SPI_WriteComm(0xA0);SPI_WriteData(0x09);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF1);SPI_WriteData(0x10);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0xF0);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x2A);SPI_WriteData(0x00);SPI_WriteData(0x00);SPI_WriteData(0x01);SPI_WriteData(0x67);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x2B);SPI_WriteData(0x01);SPI_WriteData(0x68);SPI_WriteData(0x01);SPI_WriteData(0x68);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x4D);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x4E);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x4F);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x4C);SPI_WriteData(0x01);SPI_CS=1; Delay(10); SPI_CS=0;SPI_WriteComm(0x4C);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x2A);SPI_WriteData(0x00);SPI_WriteData(0x00);SPI_WriteData(0x01);SPI_WriteData(0x67);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x2B);SPI_WriteData(0x00);SPI_WriteData(0x00);SPI_WriteData(0x01);SPI_WriteData(0x67);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x35);SPI_WriteData(0x00);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x21);SPI_CS=1; SPI_CS=0;SPI_WriteComm(0x11);SPI_CS=1; Delay(120); SPI_CS=0;SPI_WriteComm(0x29);SPI_CS=1;