-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.h
39 lines (30 loc) · 1.02 KB
/
gui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _GUI_H_
#define _GUI_H_
//---包含头文件---//
#include <reg52.H>
#include "lcd_driver.h"
//---重定义关键词---//
#ifndef uchar
#define uchar unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif
//---显示图片,定义这个---//
//#define PICTURE_SHOW
//---显示32*29的汉字---//
#define CHAR32_SHOW
//---显示19x24的汉字---//
//#define CHAR14_SHOW
//---显示ASCII码对应的字符---//
#define USE_ASCII
//---定义全局变量---//
void GUI_Dot(uint x, uint y, uint color); //画点
void GUI_DrowSign(uint x, uint y, uint color);
void GUI_Box(uint sx, uint sy, uchar ex, uint ey, uint color); //画方框
void GUI_Line(uint xStart, uint yStart, uint xEnd, uint yEnd, uint color);//画线条
void GUI_Write32CnChar(uint x, uint y, uchar *cn, uint wordColor, uint backColor);
void GUI_Write14CnChar(uint x,uint y,uchar *cn,uint wordColor,uint backColor);
void GUI_ShowPicture(uint x, uint y, uchar wide, uint high);
void GUI_WriteASCII(uint x, uint y, uchar *p, uint wordColor, uint backColor);
#endif