⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_bk.h

📁 ucosii的源代码希望能给予学习嵌入式系统的朋友一定的帮助
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -