refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -229,7 +229,7 @@ You can do this in the following way:
|
||||
.. code:: c
|
||||
|
||||
/*Delete the original display refresh timer*/
|
||||
lv_timer_del(disp->refr_timer);
|
||||
lv_timer_delete(disp->refr_timer);
|
||||
disp->refr_timer = NULL;
|
||||
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ You can do this in the following way:
|
||||
.. code:: c
|
||||
|
||||
/*Delete the original input device read timer*/
|
||||
lv_timer_del(indev->read_timer);
|
||||
lv_timer_delete(indev->read_timer);
|
||||
indev->read_timer = NULL;
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ Here is some pseudocode to illustrate the concept:
|
||||
{
|
||||
/* You must always hold the mutex while using LVGL APIs */
|
||||
mutex_lock(&lvgl_mutex);
|
||||
lv_obj_t *img = lv_image_create(lv_scr_act());
|
||||
lv_obj_t *img = lv_image_create(lv_screen_active());
|
||||
mutex_unlock(&lvgl_mutex);
|
||||
|
||||
while(1) {
|
||||
|
||||
Reference in New Issue
Block a user