BOE1.9-IPS(1.9¹¤¿Ø-170RGBX320) panel initial code void NV3030B_ BOE1.9-IPS _Initial(void) { RST=1; Delay_ms(10); RST=0; Delay_ms(100); RST=1; Delay_ms(120); NV3030B_MCU8_8080_CMD(0xFD); NV3030B_MCU8_8080_DAT(0x06); NV3030B_MCU8_8080_DAT(0x08); NV3030B_MCU8_8080_CMD(0x61); NV3030B_MCU8_8080_DAT(0x07); NV3030B_MCU8_8080_DAT(0x07); NV3030B_MCU8_8080_CMD(0x73); NV3030B_MCU8_8080_DAT(0x70); NV3030B_MCU8_8080_CMD(0x73); NV3030B_MCU8_8080_DAT(0x00); //07 //bias NV3030B_MCU8_8080_CMD(0x62);// NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x44); NV3030B_MCU8_8080_DAT(0x40); NV3030B_MCU8_8080_CMD(0x63);//VGL NV3030B_MCU8_8080_DAT(0x41);// NV3030B_MCU8_8080_DAT(0x07);// NV3030B_MCU8_8080_DAT(0x12);// NV3030B_MCU8_8080_DAT(0x12);// //VSP NV3030B_MCU8_8080_CMD(0x65);//Pump1=4.7MHz //PUMP1 VSP NV3030B_MCU8_8080_DAT(0x08);//D6-5:pump1_clk[1:0] clamp 28 2b NV3030B_MCU8_8080_DAT(0x17);//6.26 NV3030B_MCU8_8080_DAT(0x21); //VSN NV3030B_MCU8_8080_CMD(0x66); //pump=2 AVCL NV3030B_MCU8_8080_DAT(0x08); //clamp 08 0b 09 NV3030B_MCU8_8080_DAT(0x17); //10 NV3030B_MCU8_8080_DAT(0x21); //add source_neg_time NV3030B_MCU8_8080_CMD(0x67);//pump_sel NV3030B_MCU8_8080_DAT(0x20);//21 20 NV3030B_MCU8_8080_DAT(0x40); //gamma vap/van NV3030B_MCU8_8080_CMD(0x68);//gamma vap/van NV3030B_MCU8_8080_DAT(0x90);//90 9f NV3030B_MCU8_8080_DAT(0x30);// 30 NV3030B_MCU8_8080_DAT(0x27);//77 NV3030B_MCU8_8080_DAT(0x2c);//07 NV3030B_MCU8_8080_CMD(0xb1);//frame rate NV3030B_MCU8_8080_DAT(0x0F);//0x0f fr_h[5:0] 0F NV3030B_MCU8_8080_DAT(0x02);//0x02 fr_v[4:0] 02 NV3030B_MCU8_8080_DAT(0x01);//0x04 fr_div[2:0] 03 NV3030B_MCU8_8080_CMD(0xB4); NV3030B_MCU8_8080_DAT(0x01); //00:column 01:dot ////porch NV3030B_MCU8_8080_CMD(0xB5); NV3030B_MCU8_8080_DAT(0x02);//0x02 vfp[6:0] NV3030B_MCU8_8080_DAT(0x02);//0x02 vbp[6:0] NV3030B_MCU8_8080_DAT(0x0a);//0x0A hfp[6:0] NV3030B_MCU8_8080_DAT(0x14);//0x14 hbp[6:0] NV3030B_MCU8_8080_CMD(0xB6); NV3030B_MCU8_8080_DAT(0x04);// NV3030B_MCU8_8080_DAT(0x01);// NV3030B_MCU8_8080_DAT(0x9f);// NV3030B_MCU8_8080_DAT(0x00);// NV3030B_MCU8_8080_DAT(0x02);// ////gamme sel NV3030B_MCU8_8080_CMD(0xdf);// NV3030B_MCU8_8080_DAT(0x11);//gofc_gamma_en_sel=1 ////gamma_test1 A1#_wangly //3030b_gamma_new_12.18 //GAMMA---------------------------------///////////// NV3030B_MCU8_8080_CMD(0xE2); NV3030B_MCU8_8080_DAT(0x23);//vrp0[5:0] V63 NV3030B_MCU8_8080_DAT(0x22);//vrp1[5:0] V62 NV3030B_MCU8_8080_DAT(0x23);//vrp2[5:0] V61 NV3030B_MCU8_8080_DAT(0x35);//vrp3[5:0] V2 NV3030B_MCU8_8080_DAT(0x38);//vrp4[5:0] V1 NV3030B_MCU8_8080_DAT(0x3f);//vrp5[5:0] V0 NV3030B_MCU8_8080_CMD(0xE5); NV3030B_MCU8_8080_DAT(0x3f);//vrn0[5:0] V0 NV3030B_MCU8_8080_DAT(0x30);//vrn1[5:0] V1 NV3030B_MCU8_8080_DAT(0x2d);//vrn2[5:0] V2 NV3030B_MCU8_8080_DAT(0x1d);//vrn3[5:0] V61 NV3030B_MCU8_8080_DAT(0x20);//vrn4[5:0] V62 NV3030B_MCU8_8080_DAT(0x22);//vrn5[5:0] V63 NV3030B_MCU8_8080_CMD(0xE1); NV3030B_MCU8_8080_DAT(0x30);//prp0[6:0] V51 NV3030B_MCU8_8080_DAT(0x78);//prp1[6:0] V15 NV3030B_MCU8_8080_CMD(0xE4); NV3030B_MCU8_8080_DAT(0x69);//prn0[6:0] V15 NV3030B_MCU8_8080_DAT(0x2f);//prn1[6:0] V51 NV3030B_MCU8_8080_CMD(0xE0); NV3030B_MCU8_8080_DAT(0x05);//pkp0[4:0] V60 NV3030B_MCU8_8080_DAT(0x05);//pkp1[4:0] V56 NV3030B_MCU8_8080_DAT(0x10);//pkp2[4:0] V45 NV3030B_MCU8_8080_DAT(0x12);//pkp3[4:0] V37 NV3030B_MCU8_8080_DAT(0x11);//pkp4[4:0] V29 NV3030B_MCU8_8080_DAT(0x0d);//pkp5[4:0] V21 NV3030B_MCU8_8080_DAT(0x0e);//pkp6[4:0] V7 NV3030B_MCU8_8080_DAT(0x17);//pkp7[4:0] V3 NV3030B_MCU8_8080_CMD(0xE3); NV3030B_MCU8_8080_DAT(0x13);//pkn0[4:0] V3 NV3030B_MCU8_8080_DAT(0x13);//pkn1[4:0] V7 NV3030B_MCU8_8080_DAT(0x13);//pkn2[4:0] V21 NV3030B_MCU8_8080_DAT(0x0c);//pkn3[4:0] V29 NV3030B_MCU8_8080_DAT(0x0f);//pkn4[4:0] V37 NV3030B_MCU8_8080_DAT(0x07);//pkn5[4:0] V45 NV3030B_MCU8_8080_DAT(0x05);//pkn6[4:0] V56 NV3030B_MCU8_8080_DAT(0x05);//pkn7[4:0] V60 //GAMMA---------------------------------///////////// //source NV3030B_MCU8_8080_CMD(0xE6); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0xff);//SC_EN_START[7:0] f0 NV3030B_MCU8_8080_CMD(0xE7); NV3030B_MCU8_8080_DAT(0x01);//CS_START[3:0] 01 NV3030B_MCU8_8080_DAT(0x04);//scdt_inv_sel cs_vp_en NV3030B_MCU8_8080_DAT(0x03);//CS1_WIDTH[7:0]12 NV3030B_MCU8_8080_DAT(0x03);//CS2_WIDTH[7:0]12 NV3030B_MCU8_8080_DAT(0x00);//PREC_START[7:0] 06 NV3030B_MCU8_8080_DAT(0x12);//PREC_WIDTH[7:0] 12 NV3030B_MCU8_8080_CMD(0xE8); //source NV3030B_MCU8_8080_DAT(0x00); //VCMP_OUT_EN 81-vcmp/vref_output pad NV3030B_MCU8_8080_DAT(0x70); //chopper_sel[6:4] NV3030B_MCU8_8080_DAT(0x00); //gchopper_sel[6:4] 60 ////gate NV3030B_MCU8_8080_CMD(0xEc); NV3030B_MCU8_8080_DAT(0x52);//50 NV3030B_MCU8_8080_CMD(0xF1); NV3030B_MCU8_8080_DAT(0x01);//te_pol tem_extend NV3030B_MCU8_8080_DAT(0x01); NV3030B_MCU8_8080_DAT(0x02); NV3030B_MCU8_8080_CMD(0xF6); NV3030B_MCU8_8080_DAT(0x01); NV3030B_MCU8_8080_DAT(0x30); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x00);//SPI2L: 40 NV3030B_MCU8_8080_CMD(0xfd); NV3030B_MCU8_8080_DAT(0xfa); NV3030B_MCU8_8080_DAT(0xfc); NV3030B_MCU8_8080_CMD(0x3a); NV3030B_MCU8_8080_DAT(0x55);//SH 0x66 NV3030B_MCU8_8080_CMD(0x35); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_CMD(0x36);//bgr_[3] NV3030B_MCU8_8080_DAT(0x00);//c0 NV3030B_MCU8_8080_CMD(0x21); WriteCom(0x2A); //Set Column Address WriteData(0x00); WriteData(0x00+35); //35 WriteData(0x00) ; WriteData(0xA9+35); //35 WriteCom(0x2B); //Set Page Address WriteData(0x00); WriteData(0x00); WriteData(0x01); WriteData(0x3f); NV3030B_MCU8_8080_CMD(0x11); // exit sleep Delay_ms(120); NV3030B_MCU8_8080_CMD(0x29); // display on Delay_ms(10); }