📄 lcd_struct.h
字号:
/*****************************
定义LCD所用数据结构
******************************/
#ifndef _LCD_STRUC_DEF
#define _LCD_STRUC_DEF
/* LCD颜色类型
* COLOR[0-3] : 红
* COLOR[4-7] : 绿
* COLOR[8-11] : 蓝
* COLOR[12-15]: 保留半字节
*/
typedef unsigned short COLOR;
// 保存屏幕缓冲区结构
struct save_struct
{
int save_w;
int save_h;
unsigned char * save_buf;
};
// LCD显示命令的参数结构
struct lcd_display
{
int x1, y1; /* 第一个点的x, y坐标 */
int x2, y2; /* 第二个点的x, y坐标 */
unsigned char codes[32]; /* 字符点阵数据 */
COLOR color; /* 显示颜色 */
};
// LCD屏幕命令的参数结构
struct lcd_screen
{
int x1, y1; /* 第一个点的x, y坐标 */
int x2, y2; /* 第二个点的x, y坐标 */
struct save_struct * buffer; /* 保存屏幕缓冲区 */
};
#endif // _LCD_STRUC_DEF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -