void ST7789V_BOE32(void) { LCD_params.Lcm_W=240; //屏分辨率宽度 LCD_params.Lcm_H=320; //屏分辨率高度 LCD_params.Com_length=0; LCD_params.BlockWrite = NOKIA_LCD_WINDOW; READ_ID1(0x04); //只读D3寄存器 // Lcm_H =320; // Lcm_W =240; // Com_length=0; // IC_type= 8; WriteCom(0x11); Delayms(120); //Delay 120ms //--------------------------------------Display Setting------------------------------------------// WriteCom(0x36); WriteData(0xC0); WriteCom(0x3a); WriteData(0x05); //16bit //--------------------------------ST7789V Frame rate setting----------------------------------// WriteCom(0xb2); WriteData(0x0c); WriteData(0x0c); WriteData(0x00); WriteData(0x33); WriteData(0x33); WriteCom(0xb7); WriteData(0x35); //---------------------------------ST7789V Power setting--------------------------------------// WriteCom(0xbb); WriteData(0x15); WriteCom(0xc0); WriteData(0x2c); WriteCom(0xc2); WriteData(0x01); WriteCom(0xc3); WriteData(0x00); WriteCom(0xc4); WriteData(0x20); WriteCom(0xc6); WriteData(0x0f); WriteCom(0xd0); WriteData(0xa4); WriteData(0xa1); //--------------------------------ST7789V gamma setting--------------------------------------// WriteCom(0xe0); WriteData(0xd0); WriteData(0x0a); WriteData(0x12); WriteData(0x0c); WriteData(0x0c); WriteData(0x08); WriteData(0x35); WriteData(0x54); WriteData(0x43); WriteData(0x2a); WriteData(0x15); WriteData(0x14); WriteData(0x17); WriteData(0x1d); WriteCom(0xe1); WriteData(0xd0); WriteData(0x04); WriteData(0x09); WriteData(0x0b); WriteData(0x0c); WriteData(0x28); WriteData(0x2e); WriteData(0x44); WriteData(0x43); WriteData(0x2a); WriteData(0x15); WriteData(0x14); WriteData(0x17); WriteData(0x19); WriteCom(0x29); WriteCom(0x2C);