lcd.h
来自「W3100是WIZnet公司专门为以太网互联和嵌入式设备推出的硬件TCP/IP协」· C头文件 代码 · 共 98 行
H
98 行
/*
###############################################################################
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 + =
减小字号Ctrl + -
显示快捷键?