|
#define | WHITE 0xFFFF |
|
#define | BLACK 0x0000 |
|
#define | ORANGE 0XFD20 |
|
#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 | PURPLE 0x780F |
|
#define | BROWN 0XBC40 |
|
#define | BRRED 0XFC07 |
|
#define | GRAY 0X8430 |
|
#define | DARKBLUE 0x4C1C |
|
#define | LIGHTBLUE 0x67A |
|
#define | GRAYBLUE 0X5458 |
|
#define | LIGHTGREEN 0X841F |
|
#define | LGRAY 0XC618 |
|
#define | LGRAYBLUE 0XA651 |
|
#define | LBBLUE 0X2B12 |
|
#define | LCD_CTRLA CW_GPIOA |
|
#define | LCD_CTRLC CW_GPIOC |
|
#define | LCD_SCL GPIO_PIN_4 |
|
#define | LCD_SDA GPIO_PIN_3 |
|
#define | LCD_CS GPIO_PIN_0 |
|
#define | LCD_LED GPIO_PIN_15 |
|
#define | LCD_RS GPIO_PIN_1 |
|
#define | LCD_RST GPIO_PIN_2 |
|
#define | LCD_SCL_SET LCD_CTRLA->BSRR=LCD_SCL |
|
#define | LCD_SDA_SET LCD_CTRLA->BSRR=LCD_SDA |
|
#define | LCD_CS_SET LCD_CTRLA->BSRR=LCD_CS |
|
#define | LCD_LED_SET LCD_CTRLC->BSRR=LCD_LED |
|
#define | LCD_RS_SET LCD_CTRLA->BSRR=LCD_RS |
|
#define | LCD_RST_SET LCD_CTRLA->BSRR=LCD_RST |
|
#define | LCD_SCL_CLR LCD_CTRLA->BRR=LCD_SCL |
|
#define | LCD_SDA_CLR LCD_CTRLA->BRR=LCD_SDA |
|
#define | LCD_CS_CLR LCD_CTRLA->BRR=LCD_CS |
|
#define | LCD_LED_CLR LCD_CTRLC->BRR=LCD_LED |
|
#define | LCD_RST_CLR LCD_CTRLA->BRR=LCD_RST |
|
#define | LCD_RS_CLR LCD_CTRLA->BRR=LCD_RS |
|
#define | LCD_DATAOUT(x) |
|
#define | LCD_DATAIN LCD_DATA->IDR; |
|
#define | LCD_WR_DATA(data) |
|
#define | X_MAX_PIXEL 160 |
|
#define | Y_MAX_PIXEL 128 |
|
|
void | LCD_GPIO_Init (void) |
| 初始化LCD屏幕的GPIO配置
|
|
void | Lcd_WriteIndex (uint8_t Index) |
| 向液晶屏写一个8位指令
|
|
void | Lcd_WriteData (uint8_t Data) |
| 向液晶屏写一个8位数据
|
|
void | Lcd_WriteReg (uint8_t Index, uint8_t Data) |
| 向液晶屏寄存器写数据
|
|
uint16_t | Lcd_ReadReg (uint8_t LCD_Reg) |
|
void | Lcd_Reset (void) |
| 重置LCD屏幕
|
|
void | Lcd_Init (void) |
| LCD屏幕初始化
|
|
void | Lcd_Clear (uint16_t Color) |
| 全屏清屏函数
|
|
void | Lcd_SetXY (uint16_t x, uint16_t y) |
| 设置lcd显示起始点
|
|
void | Gui_DrawPoint (uint16_t x, uint16_t y, uint16_t Data) |
| 画一个点
|
|
uint32_t | Lcd_ReadPoint (uint16_t x, uint16_t y) |
| 读TFT某一点的颜色
|
|
void | Lcd_SetRegion (uint16_t x_start, uint16_t y_start, uint16_t x_end, uint16_t y_end) |
| 设置lcd显示区域,在此区域写点数据自动换行
|
|
void | LCD_WriteData_16Bit (uint16_t Data) |
| 向SPI总线传输一个16位数据
|
|
void | Lcd_Part_Clear (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint16_t Color) |
| 部分区域清屏函数
|
|
void | Set_Lcd_Brightness (uint8_t light) |
| 设置LCD屏幕的亮度
|
|