改为使用lvgl8.3库
This commit is contained in:
parent
4f56927ef7
commit
8d37dc1c4c
@ -70,17 +70,18 @@ dependencies:
|
|||||||
type: idf
|
type: idf
|
||||||
version: 5.3.2
|
version: 5.3.2
|
||||||
lvgl/lvgl:
|
lvgl/lvgl:
|
||||||
component_hash: 096c69af22eaf8a2b721e3913da91918c5e6bf1a762a113ec01f401aa61337a0
|
component_hash: d7c1ac037ae6e85d94897f807d6e7ba0946a83e720074fc95a4f6241da9f9f53
|
||||||
dependencies: []
|
dependencies: []
|
||||||
source:
|
source:
|
||||||
registry_url: https://components.espressif.com
|
registry_url: https://components.espressif.com/
|
||||||
type: service
|
type: service
|
||||||
version: 9.2.2
|
version: 8.4.0
|
||||||
direct_dependencies:
|
direct_dependencies:
|
||||||
- espressif/button
|
- espressif/button
|
||||||
- espressif/esp_lvgl_port
|
- espressif/esp_lvgl_port
|
||||||
- espressif/esp_tinyusb
|
- espressif/esp_tinyusb
|
||||||
- idf
|
- idf
|
||||||
manifest_hash: 8133e7eb1d8a5737d98992690789490af440ee59deaecd0484697ce3810f9c65
|
- lvgl/lvgl
|
||||||
|
manifest_hash: 63bb1a25a19f0c82245b65a6816b4b0b40724069be6bffcd572bc297fe023630
|
||||||
target: esp32s2
|
target: esp32s2
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
|
|||||||
@ -93,11 +93,11 @@ static void app_main_display(void)
|
|||||||
lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_CENTER, 0);
|
lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_CENTER, 0);
|
||||||
#if LVGL_VERSION_MAJOR == 8
|
#if LVGL_VERSION_MAJOR == 8
|
||||||
lv_label_set_recolor(label, true);
|
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
|
#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);
|
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
|
#endif
|
||||||
lv_obj_align(label, LV_ALIGN_CENTER, 0, 20);
|
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
|
||||||
|
|
||||||
/* Button */
|
/* Button */
|
||||||
lv_obj_t *btn = lv_btn_create(scr);
|
lv_obj_t *btn = lv_btn_create(scr);
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
## IDF Component Manager Manifest File
|
## IDF Component Manager Manifest File
|
||||||
dependencies:
|
dependencies:
|
||||||
|
lvgl/lvgl: "^8.3.0"
|
||||||
## Required IDF version
|
## Required IDF version
|
||||||
idf:
|
idf:
|
||||||
version: '>=4.1.0'
|
version: '>=4.1.0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user