📄 lcd.h
字号:
#define LA 0x08
#define LB 0x04
#define LC 0x02
#define LD 0x10
#define LE 0x20
#define LF 0x80
#define LG 0x40
#define LH 0x01
#define LCD_CODE_INFO_0 (LA|LB|LC|LD|LE|LF)
#define LCD_CODE_INFO_1 (LB|LC)
#define LCD_CODE_INFO_2 (LA|LB|LG|LE|LD)
#define LCD_CODE_INFO_3 (LA|LB|LG|LC|LD)
#define LCD_CODE_INFO_4 (LF|LG|LB|LC)
#define LCD_CODE_INFO_5 (LA|LF|LG|LC|LD)
#define LCD_CODE_INFO_6 (LA|LF|LE|LD|LC|LG)
#define LCD_CODE_INFO_7 (LA|LB|LC)
#define LCD_CODE_INFO_8 (LA|LB|LC|LD|LE|LF|LG)
#define LCD_CODE_INFO_9 (LG|LF|LA|LB|LC|LD)
#define LCD_CODE_INFO_A (LA|LB|LC|LF|LE|LG)
#define LCD_CODE_INFO_B (LA|LB|LC|LD|LE|LF|LG)
#define LCD_CODE_INFO_C (LA|LF|LE|LD)
#define LCD_CODE_INFO_D LCD_CODE_INFO_0
#define LCD_CODE_INFO_E (LA|LF|LE|LD|LG)
#define LCD_CODE_INFO_F (LA|LF|LE|LG)
#define LCD_CODE_INFO_L (LD|LF|LE)
#define LCD_CODE_INFO_H (LB|LC|LE|LF|LG)
#define RC256 0x18
#define XTAL32K 0x14
#define SYS_EN 0x01
#define SYS_DIS 0x00
#define LCD_ON 0x03
#define LCD_OFF 0x02
#define TIMER_DIS 0x04
#define WDT_DIS 0x05
//#define BIAS12 0x28
#define BIAS13 0x29
#define TNORMAL 0xE3//正常模式
#define TONE_OFF 0x08//关声音
//#define IRQ_DIS 0x00//关声音
#define LCD_TURN_TIME 255//秒
#define LEN_OF_LCD_DISPLAY 10
typedef struct LCD_Display
{
uchar timer;
uchar Showing_ItemNO;
uchar Relay_State;
uchar Lcd_Buffer[LEN_OF_LCD_DISPLAY];
}LCD_Display_s;
extern LCD_Display_s LCD_Show;
void Int_LCD(void);
void Update_LCD(uchar check_lcd);
void Write_Order(uchar Order);
void LCD_Show_Turn(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -