⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tl1771.txt

📁 TFT TL1771 INITIAL CODE
💻 TXT
字号:
void LT1771_INIT(void)
{
  LT1771_REG(0x0000,0x0001) ; //osc start
	Delay1(50);
	LT1771_REG(0x0011,0x1313) ;//driver output control 0x171F
	Delay1(50);
	LT1771_REG(0x0012,0x0000) ; //lcd drive ac control
	Delay1(50);
	LT1771_REG(0x0013,0x080D) ; //lcd drive ac control 0x080C
	Delay1(50);
	LT1771_REG(0x0014,0x0c18 ) ;// entry mode 0x0C17
	Delay1(50);
  LT1771_REG(0x0010,0x0A04 ) ;//compare register 0x1208
	Delay1(200);
	LT1771_REG(0x0013,0x081D) ; //lcd drive ac control	Delay1(50); 0x081C
	Delay1(50);
  LT1771_REG(0x0001,0x0908 ) ;//display control 0x090C
	Delay1(50);
	LT1771_REG(0x0002,0x0200 ) ;//frame cycle control
	Delay1(50);
	LT1771_REG(0x0003,0x1030 ) ;//power control 3
	Delay1(50);
	LT1771_REG(0x0007,0x0005 ) ;//power control 4
  Delay1(50);
  LT1771_REG(0x0008,0x0202 ) ; //power control 5 0x030A
  Delay1(50);
	LT1771_REG(0x000b,0x0008 ) ; //power control 1 0x5004
	Delay1(50);
	LT1771_REG(0x000c,0x0000 ) ;//power control 2
  Delay1(50);
	LT1771_REG(0x000E,0x0000 ) ;//power control 5
	//Delay1(50);
	
	
	LT1771_REG(0x0030,0x0000 ) ;//power control 4
  Delay1(50);
	LT1771_REG(0x0031,0x0407 ) ;//ram address set 0x0507
	Delay1(50);
	LT1771_REG(0x0032,0x0001 ) ;//0x0003

	LT1771_REG(0x0033,0x0400 ) ;//0x0601
	Delay1(50);
	LT1771_REG(0x0034,0x0607 ) ;//0x0407
	Delay1(50);
	LT1771_REG(0x0035,0x0003 ) ;//0x0002
	Delay1(50);
	LT1771_REG(0x0036,0x0707 ) ;
	Delay1(50);
	LT1771_REG(0x0037,0x0004 ) ;//0x0106
  Delay1(50);
	LT1771_REG(0x0038,0x0000 ) ;//gate scan start  0x0200
  Delay1(50);
  
  LT1771_REG(0x0040,0x0000 ) ;
  Delay1(50);
	LT1771_REG(0x0042,0x9f00 ) ;
  Delay1(50);
	//SCRNDRPOS
	LT1771_REG(0x0043,0x0000 ) ;//0x9F00
  Delay1(50);
	//SCRNDRPOS2
	LT1771_REG(0x0044,0x7F00 ) ;//0x9F00
	Delay1(50);
	//HRAMADDRPOS
	LT1771_REG(0x0045,0x7F00 ) ;//0x9F00
	Delay1(50);
	
	LT1771_REG(0x0007,0x0001 ) ;//
  Delay1(40);
	//DISCON2
	LT1771_REG(0x0007,0x0021 ) ;//
	//Delay1(50);
	//DISCON3
  LT1771_REG(0x0007,0x0023 ) ;//
	Delay1(50);
	//DISCON4
	LT1771_REG(0x0007,0x1037 ) ;//display on
	Delay1(50);
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -