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

📄 lcd_k51.h

📁 ucosucos系统资料
💻 H
字号:
#ifndef LCD_K51_H
#define LCD_K51_H
 






#define clear   0x01   //清除显示
#define home    0x02   //位址归位
#define dis_on  0x0f   //打开显示,光标,闪烁功能
#define in_mode 0x06   //输入方式,地址增1,光标右移
#define clear   0x01   //清除显示
#define home    0x02   //位址归位
#define dis_on  0x0f   //打开显示,光标,闪烁功能
#define in_mode 0x06   //输入方式,地址增1,光标右移
#define x1    0x80
#define x2    0x88
#define y1     0x80
#define uchar unsigned char
#define uint unsigned int
#define LCD_BUS P4OUT
#define LCD_CTR P2OUT
#define RS 0x01
#define RW 0x02
#define E  0x04
#define BMP 1
#define FLT 1
#define HZ  1
#define lcm_clk 8
void instruct(uchar ix);
void write_abyte(uchar ox );
void dis_str(uchar x, uchar y, uchar *str);

void initial_screen(void);
void itoa_float(float x,unsigned char *str,uchar wei);
void itoa(int x,unsigned char *str);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -