lcd_bk.h
来自「ucosii的源代码希望能给予学习嵌入式系统的朋友一定的帮助」· C头文件 代码 · 共 30 行
H
30 行
#ifndef __LCD__
#define __LCD__
#define UCOSII //BK library option.
#define GLCD_I_MASK 0x07 //Port Bit Mask
#define GLCD_IW_H_2 0xa0 //Set CS2 Bit and Write Bit and Instruct Bit.
#define GLCD_IW_L_2 0x80 //Clear CS2 Bit and Write Bit and Instruct Bit.
#define GLCD_DW_H_2 0xa8 //Set CS2 Bit and Write Bit and Data Bit.
#define GLCD_DW_L_2 0x88 //Clear CS2 Bit and Write Bit and Data Bit.
#define GLCD_IW_H_1 0x60 //Set CS1 Bit and Write Bit and Instruct Bit.
#define GLCD_IW_L_1 0x40 //Clear CS1 Bit and Write Bit and Instruct Bit.
#define GLCD_DW_H_1 0x68 //Set CS1 Bit and Write Bit and Data Bit.
#define GLCD_DW_L_1 0x48 //Clear CS1 Bit and Write Bit and Data Bit.
#define GLCD_LED_H 0x04
#define GLCD_LED_L 0x00
#define GLCD_ON 0x3f //LCD On Command Macro
#define GLCD_START_LINE 0xc0 //Move Cursor to Home of LCD Command Macro
#define GLCD_PAGE_ADDR 0xb8 //Set Page address Command Macro
#define GLCD_SET_ADDR 0x40 //Set address Command Macro
void WriteCom(uint8_t , uint8_t );
void WriteInstruct(uint8_t , uint8_t );
void WriteData(uint8_t , uint8_t );
void GLCDString(uint8_t x, uint8_t y, uint8_t *string);
void GLCDChar(uint8_t, uint8_t, uint8_t);
#endif //__LCD__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?