I am currently having issues when creating multiple screens for multiple displays.
I create all displays, then all the screens, before iterating through loading each one onto its respective display by calling lv_disp_set_default, followed by lv_scr_load. This, however, only displays the content on the display that I created first (with the last screen being shown, as it was last to load).
According to the Overview → Displays → Screens section of the documentation, lv_scr_load should operate on the default display, however it appears that the screens are always loaded onto the display that was the default when the display was initialised. When looking at the LVGL source, this can be explained, as lv_scr_load calls lv_disp_load_scr, which calls lv_obj_get_disp to determine the display to draw the screen to.
Furthermore, the same section of the documentation lists lv_disp_load_scr as a separate function to lv_scr_load, and shows it as having 2 arguments:
However the LVGL source shows that lv_disp_load_scr only has 1 argument (the screen):
Are these discrepancies due to the documentation being out of date? Or am I missing something here?
Basically, is there any way of loading screens to different displays, having created them at once, or do I have to set the correct default display before creating each screen?
Thanks in advance for any help!