56 lines
2.8 KiB
C
Executable File
56 lines
2.8 KiB
C
Executable File
#ifndef __LCD_H
|
|
#define __LCD_H
|
|
|
|
#include "dir_lcd.h"
|
|
|
|
void LCD_Fill(u_int16_t xsta,u_int16_t ysta,u_int16_t xend,u_int16_t yend,u_int16_t color);//指定区域填充颜色
|
|
void LCD_DrawPoint(u_int16_t x,u_int16_t y,u_int16_t color);//在指定位置画一个点
|
|
void LCD_DrawLine(u_int16_t x1,u_int16_t y1,u_int16_t x2,u_int16_t y2,u_int16_t color);//在指定位置画一条线
|
|
void LCD_DrawRectangle(u_int16_t x1, u_int16_t y1, u_int16_t x2, u_int16_t y2,u_int16_t color);//在指定位置画一个矩形
|
|
void Draw_Circle(u_int16_t x0,u_int16_t y0,u_int8_t r,u_int16_t color);//在指定位置画一个圆
|
|
|
|
void LCD_ShowChinese(u_int16_t x,u_int16_t y,u_int8_t *s,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示汉字串
|
|
void LCD_ShowChinese12x12(u_int16_t x,u_int16_t y,u_int8_t *s,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示单个12x12汉字
|
|
void LCD_ShowChinese16x16(u_int16_t x,u_int16_t y,u_int8_t *s,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示单个16x16汉字
|
|
void LCD_ShowChinese24x24(u_int16_t x,u_int16_t y,u_int8_t *s,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示单个24x24汉字
|
|
void LCD_ShowChinese32x32(u_int16_t x,u_int16_t y,u_int8_t *s,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示单个32x32汉字
|
|
|
|
void LCD_ShowChar(u_int16_t x,u_int16_t y,u_int8_t num,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示一个字符
|
|
void LCD_ShowString(u_int16_t x,u_int16_t y,const u_int8_t *p,u_int16_t fc,u_int16_t bc,u_int8_t sizey,u_int8_t mode);//显示字符串
|
|
|
|
void LCD_ShowIntNum(u_int16_t x,u_int16_t y,u_int16_t num,u_int8_t len,u_int16_t fc,u_int16_t bc,u_int8_t sizey);//显示整数变量
|
|
void LCD_ShowFloatNum1(u_int16_t x,u_int16_t y,float num,u_int8_t len,u_int16_t fc,u_int16_t bc,u_int8_t sizey);//显示两位小数变量
|
|
void LCD_Color_Fill(u_int16_t sx,u_int16_t sy,u_int16_t ex,u_int16_t ey,u_int16_t *color);
|
|
void LCD_ShowPicture(u_int16_t x,u_int16_t y,u_int16_t length,u_int16_t width,const u_int8_t pic[]);//显示图片
|
|
|
|
|
|
//画笔颜色
|
|
#define WHITE 0xFFFF
|
|
#define BLACK 0x0000
|
|
#define BLUE 0x001F
|
|
#define BRED 0XF81F
|
|
#define GRED 0XFFE0
|
|
#define GBLUE 0X07FF
|
|
#define RED 0xF800
|
|
#define MAGENTA 0xF81F
|
|
#define GREEN 0x07E0
|
|
#define CYAN 0x7FFF
|
|
#define YELLOW 0xFFE0
|
|
#define BROWN 0XBC40 //棕色
|
|
#define BRRED 0XFC07 //棕红色
|
|
#define GRAY 0X8430 //灰色
|
|
#define DARKBLUE 0X01CF //深蓝色
|
|
#define LIGHTBLUE 0X7D7C //浅蓝色
|
|
#define GRAYBLUE 0X5458 //灰蓝色
|
|
#define LIGHTGREEN 0X841F //浅绿色
|
|
#define LGRAY 0XC618 //浅灰色(PANNEL),窗体背景色
|
|
#define LGRAYBLUE 0XA651 //浅灰蓝色(中间层颜色)
|
|
#define LBBLUE 0X2B12 //浅棕蓝色(选择条目的反色)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|