有一个明显的现象,斑点都是出现在初始写坐标的地方,如汉字的“加”前面,流动显示的红圈圈是有8张图片注组成的
V0 _LcdInit(V0) //initialize the ILI932X
{
BACKLIGHT_CTR=BACKLIGHT_OFF; //关闭背光
LCD_REST=1;
_DelayUs(500);
LCD_REST=0;
_DelayUs(500);
LCD_REST=1;
_DelayUs(500);
LCD_CS =0; //打开片选使能
_LcdWriteReg(0x0001,0x0000);
_LcdWriteReg(0x0002,0x0700);
_LcdWriteReg(0x0003,0x1038); //Important
_LcdWriteReg(0x0004,0x0000);
_LcdWriteReg(0x0008,0x0207);
_LcdWriteReg(0x0009,0x0000);
_LcdWriteReg(0x000A,0x0000);
_LcdWriteReg(0x0C,0x0000);
_LcdWriteReg(0x0D,0x0000);
_LcdWriteReg(0x0F,0x0000);
_LcdWriteReg(0x10,0x0000);
_LcdWriteReg(0x11,0x0007);
_LcdWriteReg(0x12,0x0000);
_LcdWriteReg(0x13,0x1300);
_LcdWriteReg(0x10,0x1290);
_LcdWriteReg(0x11,0x0527);
_LcdWriteReg(0x12,0x0018);
_LcdWriteReg(0x13,0x1000);
_LcdWriteReg(0x29,0x001E);
_LcdWriteReg(0x2B,0x000D);
_LcdWriteReg(0x0020,0x0000);
_LcdWriteReg(0x0021,0x013f);
_LcdWriteReg(0x30,0x0004);
_LcdWriteReg(0x31,0x0007);
_LcdWriteReg(0x32,0x0006);
_LcdWriteReg(0x35,0x0206);
_LcdWriteReg(0x36,0x0408);
_LcdWriteReg(0x37,0x0507);
_LcdWriteReg(0x38,0x0200);
_LcdWriteReg(0x39,0x0707);
_LcdWriteReg(0x3C,0x0504);
_LcdWriteReg(0x3D,0x0F02);
_LcdWriteReg(0x50,0x0000); //*
_LcdWriteReg(0x51,0x013F); //*
_LcdWriteReg(0x52,0x0000); //*
_LcdWriteReg(0x53,0x00EF); //*
_LcdWriteReg(0x60,0xA700);//Importang , GS
_LcdWriteReg(0x61,0x0001);
_LcdWriteReg(0x6A,0x0000);
_LcdWriteReg(0x80,0x0000);
_LcdWriteReg(0x81,0x0000);
_LcdWriteReg(0x82,0x0000);
_LcdWriteReg(0x83,0x0000);
_LcdWriteReg(0x84,0x0000);
_LcdWriteReg(0x85,0x0000);
_LcdWriteReg(0x90,0x0010);
_LcdWriteReg(0x92,0x0600);
_LcdWriteReg(0x93,0x0003);
_LcdWriteReg(0x95,0x0110);
_LcdWriteReg(0x97,0x0000);
_LcdWriteReg(0x98,0x0000);
_LcdWriteReg(0x07,0x0173);
LCD_CS =1; //关闭片选使能
}
这是初始化程序,大家帮忙分析下 |