This commit is contained in:
2026-02-24 23:53:41 +08:00
parent 2f452e694c
commit 227139355e
4 changed files with 12 additions and 12 deletions
@@ -9,7 +9,7 @@ LV_FONT_DECLARE(my_cn_font);
* Create styles from scratch for buttons.
*/
unsigned int t=0;
unsigned long t=0;
char str[32]={0};
lv_obj_t *label3 ; //lv_label_create(lv_screen_active()); /*Add a label to the button*/
@@ -17,7 +17,7 @@ lv_obj_t *label3 ; //lv_label_create(lv_screen_active()); /*Add a label to the b
void this_work_loop(){
t++;
lv_label_set_text_fmt(label3,"这是啥xxx:%d",t);
lv_label_set_text_fmt(label3,"时间过去了:%lu秒",t);
}
@@ -57,7 +57,6 @@ void lv_example_get_started_1(void)
label3=lv_label_create(lv_screen_active()); /*Add a label to the button*/
lv_obj_add_style(label3, &style_label, 0);
lv_label_set_text_fmt(label3,"这是xxx:%d",t);
lv_timer_create(this_work_loop, 1000, NULL);
}