本帖最后由 bojue2015 于 2018-2-25 11:05 编辑
用
STM32F030驱动TFT-LCD(TFT-LCD初始化总时间不到15MS),驱动
芯片ST7789V,左上角刚上电小几率出现一小块花屏! 刷屏流程为:上电--屏供电--初始化(总延时不到20MS,不能再长)--整体刷黑底---需要的位置上刷图片。
左上角有小几率出现小块花屏,之后如果需要切换显示的话,会再刷黑底,花屏消失。之后坏样机再重新上电也难以复现此现象。
最新的优化方法是上电的初次刷两次黑底,能有效改善此问题,但几率性还是存在。
{
WriteComm(0x36); // Memory Access Control
WriteData(0xC8); // C8
WriteComm(0x3A);
WriteData(0x55); //66
WriteComm(0xC0);
WriteData(0x05);
WriteData(0x05);
WriteComm(0xC1);
WriteData(0x04);
WriteComm(0xE0); //Set Gamma
WriteData(0x06);
WriteData(0x09);
WriteData(0x0e);
WriteData(0x04);
WriteData(0x13);
WriteData(0x08);
WriteData(0x36);
WriteData(0X68);
WriteData(0x46);
WriteData(0x06);
WriteData(0x0e);
WriteData(0x0d);
WriteData(0x18);
WriteData(0x1b);
WriteData(0x0f);
WriteComm(0XE1); //Set Gamma
WriteData(0x06);
WriteData(0x23);
WriteData(0x29);
WriteData(0x03);
WriteData(0x0f);
WriteData(0x04);
WriteData(0x39);
WriteData(0x23);
WriteData(0x48);
WriteData(0x03);
WriteData(0x0b);
WriteData(0x08);
WriteData(0xb1);
WriteData(0x36);
WriteData(0x0f);
WriteComm(0x11); //Exit Sleep
}
初始化代码为供应商提供。
一周热门 更多>