p18_lcd.inc
来自「PKE(被动无钥门禁系统」· INC 代码 · 共 65 行
INC
65 行
extern LCD.DrawString, LCD.Init, LCD.DrawChar, LCD.Clear, LCD.SetLine1, LCD.SetLine0, LCD.DrawBuffer
extern LCD.Buffer.Line0, LCD.Buffer.Line1
ifndef LCD.Clear_CMD
#define LCD.Clear_CMD 0x01
endif
ifndef LCD.EntryMode_CMD
#define LCD.EntryMode_CMD 0x04
endif
ifndef LCD.IncreaseCursor_BIT
#define LCD.IncreaseCursor_BIT 0x02
endif
ifndef LCD.ShiftDisplay_BIT
#define LCD.ShiftDisplay_BIT 0x01
endif
ifndef LCD.Mode_CMD
#define LCD.Mode_CMD 0x08
endif
ifndef LCD.DisplayOn_BIT
#define LCD.DisplayOn_BIT 0x04
endif
ifndef LCD.CursorOn_BIT
#define LCD.CursorOn_BIT 0x02
endif
ifndef LCD.BlinkingOn_BIT
#define LCD.BlinkingOn_BIT 0x01
endif
ifndef LCD.Shift_CMD
#define LCD.Shift_CMD 0x10
endif
ifndef LCD.DisplayShift_BIT
#define LCD.DisplayShift_BIT 0x08
endif
ifndef LCD.ShiftRight_BIT
#define LCD.ShiftRight_BIT 0x04
endif
ifndef LCD.Function_CMD
#define LCD.Function_CMD 0x20
endif
ifndef LCD.EightBit_BIT
#define LCD.EightBit_BIT 0x10
endif
ifndef LCD.TwoLines_BIT
#define LCD.TwoLines_BIT 0x08
endif
ifndef LCD.X5Y10_BIT
#define LCD.X5Y10_BIT 0x04
endif
ifndef LCD.SetCursor_CMD
#define LCD.SetCursor_CMD 0x80
endif
ifndef LCD.Line0_ADR
#define LCD.Line0_ADR 0x00
endif
ifndef LCD.Line1_ADR
#define LCD.Line1_ADR 0x40
endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?