123456789101112131415161718192021222324252627282930313233343536373839 |
- /****************************************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
- *********************************************************************************************************/
|