main.c

来自「HOT51开发板TFT彩屏的程序」· C语言 代码 · 共 50 行

C
50
字号
#include <reg51.h>
#include "LCD.H"
#include "LCD_type.H"

#define uint unsigned int
#define uchar unsigned char


RECT rect;
CIRCLE circle ;
LINE line;
FONT font ;
ELLIPSE ellipse;

void main()
{
	LCD_Init();
/*	rect.xs = 10;
	rect.ys = 10;
	rect.xe = 50;
	rect.ye = 50;
	rect.Color = 0xFF00;

	circle.x = 64;
	circle.y = 64;
	circle.r = 40;
	circle.Color = 0xFF00;

	line.xs = 10;
	line.xe = 100;
	line.ys = 10;
	line.ye = 120;
	line.Color = 0x00FF;

	font.Height = 14;
	font.Width = 7;
	font.Color = 0xF800;
	font.BackColor = 0x07FF;

	ellipse.xs = 10;
	ellipse.xe = 100;
	ellipse.ys = 80;
	ellipse.ye = 120;
	ellipse.Color = 0x00FF;


	GUI_Inital( 0x000f ); */
 
	while(1);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?