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