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

📄 lcd.h

📁 51单片机的实时系统
💻 H
字号:
/*
 *	LCD interface header file
 *	See lcd.c for more info
 */
sbit LCD_RS = P1^6;
sbit LCD_EN = P1^7;

/* write a byte to the LCD in 4 bit mode */

 void lcd_write(unsigned char) reentrant;

/* Clear and home the LCD */

 void lcd_clear(void) reentrant;

/* write a string of characters to the LCD */
 void lcd_puts(char * s) reentrant;

/* write a  character to the LCD */
void  lcd_putch(char c) reentrant;    //字符为16进制数

/* Go to the specified position */

 void lcd_goto(unsigned char pos) reentrant;
	
/* intialize the LCD - call before anything else */

 void lcd_init(void) reentrant;


 

 /*	Set the cursor position */


#define	lcd_cursor(x)	lcd_write(((x)&0x7F)|0x80)

⌨️ 快捷键说明

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