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

📄 lcd.h

📁 ST7920并行方式的源码,自己写的,大家可以参考一下
💻 H
字号:
#ifndef	_LCD_h
#define	_LCD_h


#define ST7920_FUN_SET  0x30				/*	Function Set Instruction (Base)	*/
#define ST7920_CURSOR_Line   0x0E				/*	CURSOR Line						*/
#define ST7920_CURSOR_Square   0x0F				/*	CURSOR Square						*/
#define ST7920_DSP_CLR  0x01				/*	Display Clear					*/		
#define ST7920_MODE_SET 0x06				/*	Display Mode Set				*/		
#define ST7920_CURSOR_RL 0x10				/*  CURSOR_RL						*/
#define ST7920_CURSOR_RR 0x14				/*  CURSOR_RR						*/






sbit ST7920_RS  = P3^3;						/*	H:DATA L:Instruction Code	*/
sbit E12864 	= P1^3;						/*	Lcd Enable 				 	*/

void ST7920_WriteData(unsigned char Data);
void ST7920_WriteInstruction(unsigned char Data);
void WriteOneScreen(unsigned char startAddress, unsigned char dataNum,unsigned char *dataVector);
void ST7920_Init(void);
void  DspTitle(void);
void ST7920_Write_Line (unsigned char startAddress, unsigned char dataNum,unsigned char *dataVector);



void Delayl(unsigned int time);

#endif

⌨️ 快捷键说明

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