改为使用lvgl8.3库

This commit is contained in:
YuXifeng 2025-03-31 11:46:16 +08:00
parent 4f56927ef7
commit 8d37dc1c4c
3 changed files with 8 additions and 6 deletions

View File

@ -70,17 +70,18 @@ dependencies:
type: idf
version: 5.3.2
lvgl/lvgl:
component_hash: 096c69af22eaf8a2b721e3913da91918c5e6bf1a762a113ec01f401aa61337a0
component_hash: d7c1ac037ae6e85d94897f807d6e7ba0946a83e720074fc95a4f6241da9f9f53
dependencies: []
source:
registry_url: https://components.espressif.com
registry_url: https://components.espressif.com/
type: service
version: 9.2.2
version: 8.4.0
direct_dependencies:
- espressif/button
- espressif/esp_lvgl_port
- espressif/esp_tinyusb
- idf
manifest_hash: 8133e7eb1d8a5737d98992690789490af440ee59deaecd0484697ce3810f9c65
- lvgl/lvgl
manifest_hash: 63bb1a25a19f0c82245b65a6816b4b0b40724069be6bffcd572bc297fe023630
target: esp32s2
version: 2.0.0

View File

@ -93,11 +93,11 @@ static void app_main_display(void)
lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_CENTER, 0);
#if LVGL_VERSION_MAJOR == 8
lv_label_set_recolor(label, true);
lv_label_set_text(label, "#FF0000 "LV_SYMBOL_BELL" Hello world Espressif and LVGL "LV_SYMBOL_BELL"#\n#FF9400 "LV_SYMBOL_WARNING" For simplier initialization, use BSP "LV_SYMBOL_WARNING" #");
lv_label_set_text(label, "Hello world");
#else
lv_label_set_text(label, LV_SYMBOL_BELL" Hello world Espressif and LVGL "LV_SYMBOL_BELL"\n "LV_SYMBOL_WARNING" For simplier initialization, use BSP "LV_SYMBOL_WARNING);
#endif
lv_obj_align(label, LV_ALIGN_CENTER, 0, 20);
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
/* Button */
lv_obj_t *btn = lv_btn_create(scr);

View File

@ -1,5 +1,6 @@
## IDF Component Manager Manifest File
dependencies:
lvgl/lvgl: "^8.3.0"
## Required IDF version
idf:
version: '>=4.1.0'