/****************************************Copyright (c)************************************************** * File Name: Lcd.h * Function Describe: Header file for Lcd.c * Explain: * Writer: ShiLiangWen * Date: 2016-1-8 ********************************************************************************************************/ #ifndef __LCD_H #define __LCD_H //------------------------------------------------------------------------------------------------------- #include "stm32f10x.h" #define LCD_WIDTH 160 #define LCD_HIGH 128 #define COLOR_BLACK 0x0000 #define COLOR_WHITE 0xFFFF #define COLOR_RED 0xF800 #define COLOR_GREEN 0x07E0 #define COLOR_BLUE 0x001F extern u16 g_usBackColor; //±³¾°ÑÕÉ« extern u16 g_usColor; //Ç°¾°É«¡¢»­±ÊÑÕÉ« void LcdSetColor(u16 BrushColor,u16 BackColor); void LcdBlockWrite(u16 x1,u16 y1,u16 x2,u16 y2); void LcdSendData(unsigned char Data); void LcdInit(void); void LcdClrAll(void); void LcdSetColor(u16 BrushColor,u16 BackColor); void LcdTest(u16); void LcdShowStr(u16 x, u16 y,const char *string,u8 mode); void LcdDrawVLine(u16 y1, u16 y2, u16 x, u8 width); void LcdClearRect(u16 xl, u16 yl, u16 xr, u16 yr); void LcdDrawRect(u16 x1, u16 y1, u16 x2, u16 y2,u8 width); //------------------------------------------------------------------------------------------------------- #endif /********************************************************************************************************* END FILE *********************************************************************************************************/