在每次调用flush_cb时,我们更新last_flush_time的值为当前时间。同时,在需要判断最后一次刷新时间的地方,我们可以通过读取last_flush_time的值来获取最后一次刷新的时间。 下面是一个示例代码: #include"lvgl.h"#include// 全局变量,用于记录最后一次调用flush_cb的时间time_tlast_flush_time=0;// 刷新回调函数voi...
Your approach(es) seems correct but I doubt that it's an LVGL issue as probably it would have been already reported by many other people too. Please try adding logs to these places: beginning ofdisplay_flush end ofdisplay_flush beforelv_disp_flush_ready ...