43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
|
#ifndef __LCD_H
|
|||
|
#define __LCD_H
|
|||
|
|
|||
|
#include <rtthread.h>
|
|||
|
#include <rtdevice.h>
|
|||
|
#include <board.h>
|
|||
|
#include "st7735.h"
|
|||
|
#include <stdio.h>
|
|||
|
|
|||
|
#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 //<2F><>ɫ
|
|||
|
#define BRRED 0XFC07 //<2F>غ<EFBFBD>ɫ
|
|||
|
#define GRAY 0X8430 //<2F><>ɫ
|
|||
|
#define DARKBLUE 0X01CF //<2F><><EFBFBD><EFBFBD>ɫ
|
|||
|
#define LIGHTBLUE 0X7D7C //dz<><C7B3>ɫ
|
|||
|
#define GRAYBLUE 0X5458 //<2F><><EFBFBD><EFBFBD>ɫ
|
|||
|
|
|||
|
extern ST7735_Object_t st7735_pObj;
|
|||
|
extern uint32_t st7735_id;
|
|||
|
|
|||
|
extern uint16_t POINT_COLOR; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|||
|
extern uint16_t BACK_COLOR; //<2F><><EFBFBD><EFBFBD>ɫ
|
|||
|
|
|||
|
|
|||
|
void LCD_SetBrightness(uint32_t Brightness);
|
|||
|
uint32_t LCD_GetBrightness(void);
|
|||
|
void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint8_t mode);
|
|||
|
void LCD_ShowString(uint16_t x,uint16_t y,uint16_t width,uint16_t height,uint8_t size,uint8_t *p);
|
|||
|
void LCD_FillRGBRect(uint32_t Xpos, uint32_t Ypos, uint8_t *pData, uint32_t Width, uint32_t Height);
|
|||
|
|
|||
|
|
|||
|
#endif
|