?? lcd.h
字號:
/* * LCD interface header file * See lcd.c for more info *//* write a byte to the LCD in 4 bit mode */extern void lcd_write(unsigned char);/* Clear and home the LCD */extern void lcd_clear(void);/* write a string of characters to the LCD */extern void lcd_puts(const char * s);/* Go to the specified position */extern void lcd_goto(unsigned char pos); /* intialize the LCD - call before anything else */extern void lcd_init(void);extern void lcd_putch(char);/* Set the cursor position */#define lcd_cursor(x) lcd_write(((x)&0x7F)|0x80)
#define LCD_RW RB3#define LCD_RS RB4#define LCD_EN RB5
#define LCD_RW_DIR TRISB3
#define LCD_RS_DIR TRISB4#define LCD_EN_DIR TRISB5#define LCD_DATA PORTA#define LCD_STROBE() ((LCD_EN = 1),(LCD_EN=0))
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -