SPI4W_WRITECOM(0XD6); //NVM Load Control SPI4W_WRITEDATA(0X17); SPI4W_WRITEDATA(0X02); SPI4W_WRITECOM(0XD1); //Booster Enable SPI4W_WRITEDATA(0X01); SPI4W_WRITECOM(0XC0); //Gate Voltage Setting SPI4W_WRITEDATA(0X11); //VGH=16.5V SPI4W_WRITEDATA(0X04); //VGL=-7V SPI4W_WRITECOM(0XC1); //VSHP Setting SPI4W_WRITEDATA(0X37); //VSHP1=4.8V SPI4W_WRITEDATA(0X37); //VSHP2=4.8V SPI4W_WRITEDATA(0X37); //VSHP3=4.8V SPI4W_WRITEDATA(0X37); //VSHP4=4.8V SPI4W_WRITECOM(0XC2); //VSLP Setting SPI4W_WRITEDATA(0X19); //VSLP1=0.5V SPI4W_WRITEDATA(0X19); //VSLP2=0.5V SPI4W_WRITEDATA(0X19); //VSLP3=0.5V SPI4W_WRITEDATA(0X19); //VSLP4=0.5V SPI4W_WRITECOM(0XC4); //VSHN Setting SPI4W_WRITEDATA(0X41); //VSHN1=-3.8V SPI4W_WRITEDATA(0X41); //VSHN2=-3.8V SPI4W_WRITEDATA(0X41); //VSHN3=-3.8V SPI4W_WRITEDATA(0X41); //VSHN4=-3.8V SPI4W_WRITECOM(0XC5); //VSLN Setting SPI4W_WRITEDATA(0X19); //VSLN1=0.5V SPI4W_WRITEDATA(0X19); //VSLN2=0.5V SPI4W_WRITEDATA(0X19); //VSLN3=0.5V SPI4W_WRITEDATA(0X19); //VSLN4=0.5V SPI4W_WRITECOM(0XD8); //OSC Setting SPI4W_WRITEDATA(0XA6); SPI4W_WRITEDATA(0XE9); SPI4W_WRITECOM(0XB2); //Frame Rate Control SPI4W_WRITEDATA(0X01); //HPM=16hz ; LPM=1hz SPI4W_WRITECOM(0XB3); //Update Period Gate EQ Control in HPM SPI4W_WRITEDATA(0XE5); //Gate EQ on SPI4W_WRITEDATA(0XF6); //HPM EQ Control SPI4W_WRITEDATA(0X05); SPI4W_WRITEDATA(0X46); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X76); SPI4W_WRITEDATA(0X45); SPI4W_WRITECOM(0XB4); //Update Period Gate EQ Control in LPM SPI4W_WRITEDATA(0X05); //LPM EQ Control SPI4W_WRITEDATA(0X46); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X77); SPI4W_WRITEDATA(0X76); SPI4W_WRITEDATA(0X45); SPI4W_WRITECOM(0X62); //Gate Timing Control SPI4W_WRITEDATA(0X32); SPI4W_WRITEDATA(0X03); SPI4W_WRITEDATA(0X1F); SPI4W_WRITECOM(0XC7); //Ultra Low Power Mode SPI4W_WRITEDATA(0XC1); SPI4W_WRITEDATA(0X41); SPI4W_WRITEDATA(0X26); SPI4W_WRITECOM(0XB7); //Source EQ Enable SPI4W_WRITEDATA(0X13); SPI4W_WRITECOM(0XB0); //Gate Line Setting SPI4W_WRITEDATA(0X64); //400 line SPI4W_WRITECOM(0X11); //Sleep out DELAY_ms(200); SPI4W_WRITECOM(0XC9); //Source Voltage Select SPI4W_WRITEDATA(0X00); //VSHP1; VSLP1 ; VSHN1 ; VSLN1 SPI4W_WRITECOM(0X36); //Memory Data Access Control SPI4W_WRITEDATA(0X00); //MX=0 ; DO=0 SPI4W_WRITECOM(0X3A); //Data Format Select SPI4W_WRITEDATA(0X11); //10:4write for 24bit ; 11: 3write for 24bit SPI4W_WRITECOM(0XB9); //Gamma Mode Setting SPI4W_WRITEDATA(0X20); //20: Mono 00:4GS SPI4W_WRITECOM(0XB8); //Panel Setting SPI4W_WRITEDATA(0X29); //one line interlace; frame interval; dot inversion //WRITE RAM 300X400 SPI4W_WRITECOM(0X2A); //Column Address Setting SPI4W_WRITEDATA(0X05); SPI4W_WRITEDATA(0X36); SPI4W_WRITECOM(0X2B); //Row Address Setting SPI4W_WRITEDATA(0X00); SPI4W_WRITEDATA(0XC7); SPI4W_WRITECOM(0X35); //TE SPI4W_WRITEDATA(0X00); SPI4W_WRITECOM(0XD0); //Auto power down SPI4W_WRITEDATA(0XFF); SPI4W_WRITECOM(0X39); //0X39 low power 0X38 high power SPI4W_WRITECOM(0X29); //DISPLAY ON