Thank you @amirgon! That’s really helpful overview. I experimented a little and found out that using a timer to obtain the data would be the best option. Now I have a problem: how can I propagate new data to UI? My UI almost entirely uses data which should be in real time obtained from communication bus. I thought that if I design my whole UI basing on some data
object (e.g. dictionary or custom class) then if I update the object, the UI will update accordingly. I have read this topic and from what I understood I think I was wrong.
So, do I need to periodically send refresh event to every object which relies on my data
object? In 8.1 documentation I didn’t find anything about recursive event send (which was present in 7.11) so I assume that I cannot just send refresh event to main screen? Or maybe there is some better way to handle such cases? Or maybe LVGL designed to have frontend and backend bonded together (which would be very sad from my perspective)?
EDIT:
I found some C related topics about global variables that should be used for that. It it applicable to micropython?