lcd.h

来自「51单片机的实时系统」· C头文件 代码 · 共 37 行

H
37
字号
/*
 *	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 + =
减小字号Ctrl + -
显示快捷键?