feat: 更新 README 和主程序,修正 GPIO 控制接口并优化 LCD 显示文本
This commit is contained in:
@@ -200,9 +200,14 @@ static void app_main_display(void)
|
||||
lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, 0);
|
||||
|
||||
s_center_label = lv_label_create(scr);
|
||||
lv_label_set_text(s_center_label, "ESP32C3-LVGL1");
|
||||
lv_label_set_text(s_center_label, "BotanicalBuddy\nloading...");
|
||||
lv_label_set_recolor(s_center_label, false);
|
||||
lv_label_set_long_mode(s_center_label, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_set_size(s_center_label, EXAMPLE_LCD_H_RES - 6, EXAMPLE_LCD_V_RES - 6);
|
||||
lv_obj_set_style_text_color(s_center_label, lv_color_black(), 0);
|
||||
lv_obj_set_style_text_font(s_center_label, &lv_font_unscii_8, 0);
|
||||
lv_obj_set_style_text_font(s_center_label, &lv_font_unscii_16, 0);
|
||||
lv_obj_set_style_text_align(s_center_label, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_set_style_pad_all(s_center_label, 0, 0);
|
||||
lv_obj_align(s_center_label, LV_ALIGN_CENTER, 0, 0);
|
||||
|
||||
lvgl_port_unlock();
|
||||
|
||||
Reference in New Issue
Block a user