UP tft bar
This commit is contained in:
@@ -348,6 +348,20 @@ void TFT_ShowNum(TFT_T *dev, uint16_t x, uint16_t y, uint32_t num, uint16_t len,
|
||||
**/
|
||||
void TFT_ShowPic(TFT_T *dev, uint16_t x0, uint16_t y0, uint16_t w, uint16_t h, TFT_Color_t *bmp);
|
||||
|
||||
/**
|
||||
* @brief 在屏幕上显示进度条
|
||||
* @param dev: [输入] TFT设备指针
|
||||
* @param x: [输入] 进度条左上角x坐标
|
||||
* @param y: [输入] 进度条左上角y坐标
|
||||
* @param width: [输入] 进度条宽度
|
||||
* @param height: [输入] 进度条高度
|
||||
* @param progress: [输入] 进度值,范围[0.0, 1.0]
|
||||
* @return void
|
||||
* @example TFT_ShowBar(&tft_device, 10, 20, 100, 10, 0.75);
|
||||
**/
|
||||
void TFT_ShowBar(TFT_T *dev, uint16_t x, uint16_t y, uint16_t width, uint16_t height, float progress);
|
||||
|
||||
|
||||
#ifdef LVGL_FONT
|
||||
|
||||
#include "lvgl_font.h"
|
||||
@@ -364,8 +378,9 @@ void TFT_ShowPic(TFT_T *dev, uint16_t x0, uint16_t y0, uint16_t w, uint16_t h, T
|
||||
* @example TFT_DisplayString(&oled_device, &font_arial_16, "Hello World", 10, 20,bool mode);
|
||||
**/
|
||||
void TFT_DisplayString(TFT_T *dev, const lv_font_t *font, uint8_t *s, uint16_t x, uint16_t y);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user