lv_display_set_flush_wait_cb() function
Set a callback to be used while LVGL is waiting flushing to be finished. It can do any complex logic to wait, including semaphores, mutexes, polling flags, etc. If not set the `disp->flushing` flag is used which can be cleared with `lv_display_flush_ready()`
Arguments
wait_cb
a callback to call while LVGL is waiting for flush ready. If NULL `lv_display_flush_ready()` can be used to signal that flushing is ready.