This commit is contained in:
2025-03-26 12:47:09 +08:00
parent 3f4efa0554
commit 181658015b
50 changed files with 4191 additions and 2849 deletions
+14 -4
View File
@@ -4,7 +4,7 @@
#include "stm32f1xx_hal.h"
#include "main.h"
#include "string.h"
#include "font.h"
#include "bsp.h"
#define RS(state) HAL_GPIO_WritePin(LCD_RS_GPIO_Port,LCD_RS_Pin,(state)?(GPIO_PIN_SET):(GPIO_PIN_RESET))
@@ -13,10 +13,20 @@
#define PS(state) HAL_GPIO_WritePin(LCD_PS_GPIO_Port,LCD_PS_Pin,(state)?(GPIO_PIN_SET):(GPIO_PIN_RESET))
void LCD_Write(unsigned char type,unsigned char data);
void LCD_Read(unsigned char type,unsigned char data);
void LCD_Init (void);
void LCD_Update(void);
void LCD_Clear(void);
void LCD_Write(unsigned char type,unsigned char data);
unsigned char LCD_Read(void);
uint8_t LCD_DrawDot(uint8_t x,uint8_t y,uint8_t color);
void LCD_DrawNumber(unsigned char row,unsigned char column,int number);
void LCD_DrawButton(unsigned char row,unsigned char column,unsigned char width,unsigned char height,unsigned char *img);
void LCD_init (void);
void LCD_DEMO(void);