更新界面

This commit is contained in:
不吃油炸鸡
2025-10-19 11:59:09 +08:00
parent c5bb90333e
commit d4e618dc64
4 changed files with 137 additions and 64 deletions

View File

@@ -40,6 +40,16 @@ Page_t pages[] = {
#error "LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings"
#endif
///////////////////// help funtions ////////////////////
void ui_full_screen_refresh(lv_obj_t * screen) {
// 标记整个屏幕为脏区域
lv_obj_invalidate(screen);
// 或者立即刷新整个屏幕
lv_refr_now(NULL);
}
/////////////////////// Timer //////////////////////
/**
* Main timer for Refreshing the screens