diff options
author | zylalx1 <zylalx1@163.com> | 2024-04-10 15:17:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 15:17:44 +0800 |
commit | 47ec2784d8e7683216d206dcdd7688ea3b785a63 (patch) | |
tree | dc58ffa968bb5c46fe31bf236880b197f2d72b3c /examples/arduino/LVGL_Arduino | |
parent | 0143320f1ff3eec47c92053083ef8c5836908d1f (diff) | |
download | lvgl-47ec2784d8e7683216d206dcdd7688ea3b785a63.tar.gz lvgl-47ec2784d8e7683216d206dcdd7688ea3b785a63.zip |
chore: update some code and docs to use v9 API (#5876)
Co-authored-by: Neo Xu <neo.xu1990@gmail.com>
Diffstat (limited to 'examples/arduino/LVGL_Arduino')
-rw-r--r-- | examples/arduino/LVGL_Arduino/LVGL_Arduino.ino | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino index 94ec0c854..c8c32f915 100644 --- a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino +++ b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino @@ -47,7 +47,7 @@ void my_disp_flush( lv_display_t *disp, const lv_area_t *area, uint8_t * px_map) */ /*Call it to tell LVGL you are ready*/ - lv_disp_flush_ready(disp); + lv_display_flush_ready(disp); } /*Read the touchpad*/ @@ -112,7 +112,7 @@ void setup() /* Create a simple label * --------------------- - lv_obj_t *label = lv_label_create( lv_scr_act() ); + lv_obj_t *label = lv_label_create( lv_screen_active() ); lv_label_set_text( label, "Hello Arduino, I'm LVGL!" ); lv_obj_align( label, LV_ALIGN_CENTER, 0, 0 ); @@ -129,7 +129,7 @@ void setup() lv_demo_widgets(); */ - lv_obj_t *label = lv_label_create( lv_scr_act() ); + lv_obj_t *label = lv_label_create( lv_screen_active() ); lv_label_set_text( label, "Hello Arduino, I'm LVGL!" ); lv_obj_align( label, LV_ALIGN_CENTER, 0, 0 ); @@ -138,6 +138,6 @@ void setup() void loop() { - lv_task_handler(); /* let the GUI do its work */ + lv_timer_handler(); /* let the GUI do its work */ delay(5); /* let this time pass */ } |