ILI9806EBOE初始化代码.docx

上传人:b****8 文档编号:23762336 上传时间:2023-05-20 格式:DOCX 页数:10 大小:15.19KB
下载 相关 举报
ILI9806EBOE初始化代码.docx_第1页
第1页 / 共10页
ILI9806EBOE初始化代码.docx_第2页
第2页 / 共10页
ILI9806EBOE初始化代码.docx_第3页
第3页 / 共10页
ILI9806EBOE初始化代码.docx_第4页
第4页 / 共10页
ILI9806EBOE初始化代码.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

ILI9806EBOE初始化代码.docx

《ILI9806EBOE初始化代码.docx》由会员分享,可在线阅读,更多相关《ILI9806EBOE初始化代码.docx(10页珍藏版)》请在冰豆网上搜索。

ILI9806EBOE初始化代码.docx

ILI9806EBOE初始化代码

ILI9806E_BOE_初始化代码

voidILI9806E_BOE3.97_Initial_BOE(void){

//VCI=2.8V

//*************ResetLCDDriver****************//LCD_nRESET=1;

delayms

(1);//Delay1ms

LCD_nRESET=0;

delayms(10);//Delay10ms//Thisdelaytimeisnecessary

LCD_nRESET=1;

delayms(120);//Delay120ms

//*************StartInitialSequence**********//

//****************************************************************

**********//

//******************************Page1Command****************************//

//****************************************************************

**********//

LCD_ILI9806E_CMD(0xFF);

LCD_ILI9806E_INDEX(FF);

LCD_ILI9806E_INDEX(98);

LCD_ILI9806E_INDEX(06);

LCD_ILI9806E_INDEX(04);

LCD_ILI9806E_INDEX(01);//ChangetoPage1

LCD_ILI9806E_CMD(0x08);

LCD_ILI9806E_INDEX(0x10);//outputSDA

LCD_ILI9806E_CMD(0x21);

LCD_ILI9806E_INDEX(0x01);//DE=1Active

LCD_ILI9806E_CMD(0x30);

LCD_ILI9806E_INDEX(0x02);//480X800

LCD_ILI9806E_CMD(0x31);

LCD_ILI9806E_INDEX(0x02);//2dotInversion

LCD_ILI9806E_CMD(0x60);

LCD_ILI9806E_INDEX(0x07);//SDTI

LCD_ILI9806E_CMD(0x61);

LCD_ILI9806E_INDEX(0x06);//CRTI

LCD_ILI9806E_CMD(0x62);

LCD_ILI9806E_INDEX(0x06);//EQTI

LCD_ILI9806E_CMD(0x63);

LCD_ILI9806E_INDEX(0x04);//PCTI

LCD_ILI9806E_CMD(0x40);

LCD_ILI9806E_INDEX(0x15);//BT+2.5/-2.5pumpforDDVDH-L

LCD_ILI9806E_CMD(0x41);

LCD_ILI9806E_INDEX(0x22);//DVDDHDVDDLclamp

LCD_ILI9806E_CMD(0x42);

LCD_ILI9806E_INDEX(0x00);//VGH/VGL31.37ma32.7ma0.03

LCD_ILI9806E_CMD(0x43);

LCD_ILI9806E_INDEX(0x8B);//VGH/VGL13-95-3.81.6-1.5-2.75

LCD_ILI9806E_CMD(0x44);

LCD_ILI9806E_INDEX(0x8C);//VGH/VGL

LCD_ILI9806E_CMD(0x45);

LCD_ILI9806E_INDEX(0x1B);//VGL_REG-10V

LCD_ILI9806E_CMD(0x50);

LCD_ILI9806E_INDEX(0x78);//VGMP

LCD_ILI9806E_CMD(0x51);

LCD_ILI9806E_INDEX(0x78);//VGMN

LCD_ILI9806E_CMD(0x52);

LCD_ILI9806E_INDEX(0x00);//Flicker

LCD_ILI9806E_CMD(0x53);

LCD_ILI9806E_INDEX(0x6F);//Flicker4F

///==============PositiveGamma==============///

LCD_ILI9806E_CMD(0xA0);

LCD_ILI9806E_INDEX(0x00);//Gamma0/255

LCD_ILI9806E_CMD(0xA1);

LCD_ILI9806E_INDEX(0x14);//Gamma4/251

LCD_ILI9806E_CMD(0xA2);

LCD_ILI9806E_INDEX(0x1A);//Gamma8/247

LCD_ILI9806E_CMD(0xA3);

LCD_ILI9806E_INDEX(0x06);//Gamma16/239

LCD_ILI9806E_CMD(0xA4);

LCD_ILI9806E_INDEX(0x02);//Gamma24/231

LCD_ILI9806E_CMD(0xA5);

LCD_ILI9806E_INDEX(0x04);//Gamma52/203

LCD_ILI9806E_CMD(0xA6);

LCD_ILI9806E_INDEX(0x1C);//Gamma80/175

LCD_ILI9806E_CMD(0xA7);

LCD_ILI9806E_INDEX(0x00);//Gamma108/147

LCD_ILI9806E_CMD(0xA8);

LCD_ILI9806E_INDEX(0x19);//Gamma147/108

LCD_ILI9806E_CMD(0xA9);

LCD_ILI9806E_INDEX(0x0C);//Gamma175/80

LCD_ILI9806E_CMD(0xAA);

LCD_ILI9806E_INDEX(0x0E);//Gamma203/52

LCD_ILI9806E_CMD(0xAB);

LCD_ILI9806E_INDEX(0x04);//Gamma231/24

LCD_ILI9806E_CMD(0xAC);

LCD_ILI9806E_INDEX(0x07);//Gamma239/16

LCD_ILI9806E_CMD(0xAD);

LCD_ILI9806E_INDEX(0x1A);//Gamma247/8

LCD_ILI9806E_CMD(0xAE);

LCD_ILI9806E_INDEX(0x02);//Gamma251/4

LCD_ILI9806E_CMD(0xAF);

LCD_ILI9806E_INDEX(0x00);//Gamma255/0

///==============NagitiveGamma==============///

LCD_ILI9806E_CMD(0xC0);

LCD_ILI9806E_INDEX(0x00);//Gamma0

LCD_ILI9806E_CMD(0xC1);

LCD_ILI9806E_INDEX(0x01);//Gamma4

LCD_ILI9806E_CMD(0xC2);

LCD_ILI9806E_INDEX(0x0A);//Gamma8

LCD_ILI9806E_CMD(0xC3);

LCD_ILI9806E_INDEX(0x10);//Gamma16

LCD_ILI9806E_CMD(0xC4);

LCD_ILI9806E_INDEX(0x07);//Gamma24

LCD_ILI9806E_CMD(0xC5);

LCD_ILI9806E_INDEX(0x10);//Gamma52

LCD_ILI9806E_CMD(0xC6);

LCD_ILI9806E_INDEX(0x01);//Gamma80

LCD_ILI9806E_CMD(0xC7);

LCD_ILI9806E_INDEX(0x0F);//Gamma108

LCD_ILI9806E_CMD(0xC8);

LCD_ILI9806E_INDEX(0x06);//Gamma147

LCD_ILI9806E_CMD(0xC9);

LCD_ILI9806E_INDEX(0x0A);//Gamma175

LCD_ILI9806E_CMD(0xCA);

LCD_ILI9806E_INDEX(0x12);//Gamma203

LCD_ILI9806E_CMD(0xCB);

LCD_ILI9806E_INDEX(0x0B);//Gamma231

LCD_ILI9806E_CMD(0xCC);

LCD_ILI9806E_INDEX(0x14);//Gamma239

LCD_ILI9806E_CMD(0xCD);

LCD_ILI9806E_INDEX(0x17);//Gamma247

LCD_ILI9806E_CMD(0xCE);

LCD_ILI9806E_INDEX(0x16);//Gamma251

LCD_ILI9806E_CMD(0xCF);

LCD_ILI9806E_INDEX(0x00);//Gamma255

//****************************************************************

**********//

//******************************Page7Command****************************//

//****************************************************************

**********//

LCD_ILI9806E_CMD(0xFF);

LCD_ILI9806E_INDEX(FF);

LCD_ILI9806E_INDEX(98);

LCD_ILI9806E_INDEX(06);

LCD_ILI9806E_INDEX(04);

LCD_ILI9806E_INDEX(07);//ChangetoPage7

LCD_ILI9806E_CMD(0x18);

LCD_ILI9806E_INDEX(0x1D);

LCD_ILI9806E_CMD(0x17);

LCD_ILI9806E_INDEX(0x12);//VGL_REGON

//****************************************************************

**********//

//******************************Page6Command****************************//

//****************************************************************

**********//

LCD_ILI9806E_CMD(0xFF);

LCD_ILI9806E_INDEX(FF);

LCD_ILI9806E_INDEX(98);

LCD_ILI9806E_INDEX(06);

LCD_ILI9806E_INDEX(04);

LCD_ILI9806E_INDEX(06);//ChangetoPage6

LCD_ILI9806E_CMD(0x00);

LCD_ILI9806E_INDEX(0x20);

LCD_ILI9806E_CMD(0x01);

LCD_ILI9806E_INDEX(0x05);

LCD_ILI9806E_CMD(0x02);

LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x03);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x04);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x05);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x06);LCD_ILI9806E_INDEX(0x88);

LCD_ILI9806E_CMD(0x07);LCD_ILI9806E_INDEX(0x04);

LCD_ILI9806E_CMD(0x08);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x09);LCD_ILI9806E_INDEX(0x90);

LCD_ILI9806E_CMD(0x0A);LCD_ILI9806E_INDEX(0x04);

LCD_ILI9806E_CMD(0x0B);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x0C);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x0D);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x0E);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x0F);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x10);LCD_ILI9806E_INDEX(0x55);

LCD_ILI9806E_CMD(0x11);LCD_ILI9806E_INDEX(0x50);

LCD_ILI9806E_CMD(0x12);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x13);LCD_ILI9806E_INDEX(0x0C);

LCD_ILI9806E_CMD(0x14);LCD_ILI9806E_INDEX(0x0D);

LCD_ILI9806E_CMD(0x15);LCD_ILI9806E_INDEX(0x43);

LCD_ILI9806E_CMD(0x16);LCD_ILI9806E_INDEX(0x0B);

LCD_ILI9806E_CMD(0x17);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x18);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x19);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x1A);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x1B);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x1C);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x1D);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x20);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x21);LCD_ILI9806E_INDEX(0x23);

LCD_ILI9806E_CMD(0x22);LCD_ILI9806E_INDEX(0x45);

LCD_ILI9806E_CMD(0x23);LCD_ILI9806E_INDEX(0x67);

LCD_ILI9806E_CMD(0x24);LCD_ILI9806E_INDEX(0x01);

LCD_ILI9806E_CMD(0x25);LCD_ILI9806E_INDEX(0x23);

LCD_ILI9806E_CMD(0x26);LCD_ILI9806E_INDEX(0x45);

LCD_ILI9806E_CMD(0x27);LCD_ILI9806E_INDEX(0x67);

LCD_ILI9806E_CMD(0x30);LCD_ILI9806E_INDEX(0x02);

LCD_ILI9806E_CMD(0x31);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x32);LCD_ILI9806E_INDEX(0x11);

LCD_ILI9806E_CMD(0x33);LCD_ILI9806E_INDEX(0xAA);

LCD_ILI9806E_CMD(0x34);LCD_ILI9806E_INDEX(0xBB);

LCD_ILI9806E_CMD(0x35);LCD_ILI9806E_INDEX(0x66);

LCD_ILI9806E_CMD(0x36);LCD_ILI9806E_INDEX(0x00);

LCD_ILI9806E_CMD(0x37);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x38);

LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x39);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3A);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3B);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3C);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3D);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3E);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x3F);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x40);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x53);LCD_ILI9806E_INDEX(0x1A);//VGLOreferVGL_REG

/*************************Ôö?

Ó************************************

*******/

LCD_ILI9806E_CMD(0xFF);LCD_ILI9806E_INDEX(FF);LCD_ILI9806E_INDEX(98);LCD_ILI9806E_INDEX(06);LCD_ILI9806E_INDEX(04);LCD_ILI9806E_INDEX(07);//ChangetoPage7

LCD_ILI9806E_CMD(0x17);LCD_ILI9806E_INDEX(0x22);

LCD_ILI9806E_CMD(0x02);LCD_ILI9806E_INDEX(0x77);

LCD_ILI9806E_CMD(0xE1);

LCD_ILI9806E_INDEX(0x79);

//****************************************************************

**********//

//******************************Page0Command****************************//

//****************************************************************

**********//

LCD_ILI9806E_CMD(0xFF);

LCD_ILI9806E_INDEX(FF);

LCD_ILI9806E_INDEX(98);

LCD_ILI9806E_INDEX(06);

LCD_ILI9806E_INDEX(04);

LCD_ILI9806E_INDEX(00);//ChangetoPage0

LCD_ILI9806E_CMD(0x11);//Sleep-OutDelay_ms(120);

LCD_ILI9806E_CMD(0x29);//DisplayOn

}

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > IT计算机 > 互联网

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1