钻石会员
主题
回帖0
积分11063
阅读权限50
注册时间2009-12-25
最后登录1970-1-1
在线时间 小时
|
#define LCD_DISP_OFF 0x08 // display off
#define LCD_CLR 0x01 //clear display
#define LCD_HOME 0x03 // return to home position
#define LCD_DISP_ON 0x0C // display on, cursor off
/* function set: set interface data length and number of display lines */
#define LCD_FUNCTION_4BIT_1LINE 0x20 /* 4-bit interface, single line, 5x7 dots */
#define LCD_FUNCTION_4BIT_2LINES 0x28 /* 4-bit interface, dual line, 5x7 dots */
#define LCD_FUNCTION_8BIT_1LINE 0x30 /* 8-bit interface, single line, 5x7 dots */
#define LCD_FUNCTION_8BIT_2LINES 0x38 /* 8-bit interface, dual line, 5x7 dots */
#define LCD_FUNCTION_4BIT_1LINE 0x20 00100000
#define LCD_FUNCTION_4BIT_2LINES 0x28 00101000
#define LCD_FUNCTION_8BIT_1LINE 0x30 00110000
#define LCD_FUNCTION_8BIT_2LINES 0x38 00111000 |
|