📄 include.h
字号:
#include<reg52.h>
#include"LCD_51.h"
#include"key_scan.h"
/*常用数据类型的重命名*/
#ifndef __uchar_
#define uchar unsigned char
#endif
#ifndef __uint_
#define uint unsigned int
#endif
#ifndef __ulong_
#define ulong unsigned long int
#endif
//定义日期结构
struct date
{
uchar day;
uchar week;
uchar month;
uint year;
};
//定义时间结构
struct time
{
uchar second;
uchar minute;
uchar hour;
};
//定义时间显示结构
struct disptime
{
uchar hour[3];
uchar minute[3];
uchar second[3];
};
//定义日期显示结构
struct dispdate
{
uchar day[3];
uchar month[3];
uchar year[5];
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -