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

📄 lcd_init.c

📁 t6963的程序显示图形
💻 C
字号:

#include "T6963C_portconfig.h"
#include <reg51.h>

extern void writecommand(unsigned char command);
extern void writecommand01(unsigned char date0,unsigned char command);
extern void writecommand02(unsigned char date1 ,unsigned char date2,unsigned char command);
extern void writedate(unsigned char date);
extern void delay(unsigned int ms);
void lcd_init(void)
{
	RST=1;
//	delay(1);
	RST=0;	
//	delay(1);
	RST=1;
//	delay(1);
	MD2=1;
	FS1=0;			


//	writecommand(0x90);
//	writecommand02(0x00,0x00,text_address);

//	writecommand02(30,0x00,text_width);

	writecommand02(0x00,0x00,graphics_address);

	writecommand02(0x1e,0x00,graphics_width);

	writecommand(address_choice);

	writecommand(gra_on);

}

⌨️ 快捷键说明

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