Description
I’ve used lvgl 6.x used before with Mbed-OS and I had used a task for cyclic screen updates.
Now I have ported to v8.0 and it is basically running. I had to remove the task, it looks these are no longer supported. Or is there a replacement?
What MCU/Processor/Board and compiler are you using?
STM32F407 and others, Mbed-OS 6.11
What LVGL version are you using?
v6.x → v8.0
What do you want to achieve?
port some simple tests
What have you tried so far?
Code to reproduce
// register update handler. Task will call screen dependent cyclic updates
lv_task_create(lv_screen_update_task, 200, LV_TASK_PRIO_MID, 0);
and this was my update task, performing an update on screen activation and then performs cyclic checks:
typedef void (*lv_update_cb_t)(bool);
static void lv_screen_update_task(lv_task_t* task)
{
static lv_obj_t* lastScreen = 0;
bool firstStart;
lv_obj_t* actScreen = lv_disp_get_scr_act(NULL);
firstStart = (actScreen != lastScreen);
lastScreen = actScreen;
if (actScreen && actScreen->user_data) {
((lv_update_cb_t)actScreen->user_data)(firstStart);
}
}