lcd_type.h
来自「HOT51开发板TFT彩屏的程序」· C头文件 代码 · 共 100 行
H
100 行
#ifndef _LED_type_H_
#define _LED_type_H_
typedef unsigned char INT8U;
typedef signed char INT8S;
typedef unsigned int INT16U;
typedef signed int INT16S;
typedef unsigned long INT32U;
typedef signed long INT32S;
#include "LCD_dis.H"
//#include "LCD.H"
/*Informations of a point*/
typedef struct
{
INT8U x;
INT8U y;
TCOLOR Color;
}POINT;
/*Informations of a line*/
typedef struct
{
INT8U xs;
INT8U xe;
INT8U ys;
INT8U ye;
TCOLOR Color;
}LINE;
/*Informations of a dollop*/
typedef struct
{
INT8U xs;
INT8U xe;
INT8U ys;
INT8U ye;
TCOLOR Color;
}DOLLOP;
/*Informations of a character*/
typedef struct
{
INT8U Height;
INT8U Width;
TCOLOR Color;
TCOLOR BackColor;
}FONT;
/*Informations of a bit block*/
typedef struct
{
INT8U xs;
INT8U ys;
INT8U Width;
INT8U Height;
TCOLOR Color;
TCOLOR BackColor;
INT8U *pData;
}BitBlock;
/*Informations of a rectangle*/
typedef struct
{
INT8U xs;
INT8U ys;
INT8U xe;
INT8U ye;
TCOLOR Color;
}RECT;
/*Informations of a circle*/
typedef struct
{
INT8U x;
INT8U y;
INT8U r;
TCOLOR Color;
}CIRCLE;
/*Informations of a ellipse*/
typedef struct
{
INT8U xs;
INT8U xe;
INT8U ys;
INT8U ye;
TCOLOR Color;
}ELLIPSE;
/*Informations of a image*/
typedef struct
{
INT8U xs;
INT8U ys;
INT8U height;
INT8U length;
INT8U *pData;
}IMAGE;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?