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

📄 lcd_struct.h

📁 一个模拟可种嵌入开发环境的模拟软件.能模拟ARM系列等.
💻 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;

typedef unsigned int  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 * lcd_buf;			//add by ywc
        int lcd_buf_size;
	int lcd_row;

	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 + -