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

📄 lcd.h

📁 W3100是WIZnet公司专门为以太网互联和嵌入式设备推出的硬件TCP/IP协议栈芯片
💻 H
字号:
/*
###############################################################################

File Name :  LCD.H

Version : 1.0

Description :  LCD Basic Function Definition
  
Modified History

		Modified : 2002/03/13
		Description :  Eliminate unused functions

###############################################################################
*/



/*
###############################################################################
Include Part
###############################################################################
*/





/*
###############################################################################
Define Part
###############################################################################
*/

// LCD Command Write Register
#define LcdCommandW (*((unsigned char xdata *)0x09000))

// LCD Command Read Register
#define LcdCommandR (*((unsigned char xdata *)0x09001))

// LCD Data Write Register
#define LcdDataW    (*((unsigned char xdata *)0x09002))

// LCD Data Read Register
#define LcdDataR    (*((unsigned char xdata *)0x09003))


/* If there are unused functions in program and on compiling with Keil-C, it result in warning.In this reason, wrong operation could be happend.
So it prevent to compile unused functions to use define-function.
*/
#define __LCD_UNUSED   // If defined with " __LCD_UNUSED", actually it's not to be compiled "__LCD_UNUSED Block"


/*
###############################################################################
Grobal Variable Definition Part
###############################################################################
*/




/*
###############################################################################
Function Prototype Definition  Part
###############################################################################
*/

extern char LcdReady(void);			/* Check for LCD to be ready */

extern void ClrScr(void);			/* Clear LCD. */

extern char InitLcd(void);			/* Initialize LCD. */

extern void GotoXY(unsigned char x, unsigned char y);	/* Output character string in current Cursor. */

extern char *Puts(char* str);			/* Output character stream in current Cursor. */

extern void Putch(char ch);			/* Output 1 character in current Cursor. */

/*
###############################################################################
Unused Function Prototype Definition Part
###############################################################################
*/

#ifndef __LCD_UNUSED

extern void HomeCursor(void);			/* Move Cursor first Column. */

extern void SetCursorType(unsigned char type);	/* Decide Cursor type. */

extern void ShiftCursor(unsigned char dir);	/* Shift to Left and Right current Cursor. */

#endif

⌨️ 快捷键说明

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