I am trying to setup my 6Flick to act as an e-reader with LVGL. To begin with, I have been trying to set up multiple screens that I can switch between and update with information. I have 2 screens set up for a test; A “Menu” screen with a button for more information and a “Details” screen with information about the chosen entry. I have callbacks from the clicked event for my buttons on each screen. In the callback function, I try to load the new screen but I seem to be failing.
Things I have tried:
- Played around with partial vs complete refresh of the screen
- Tried to call to lv_timer_handler and inkplate.display within the callback functions after loading the new screen
- Invalidated the active screen
- Tried both lvgl object (Normal rectangle) and button type object
It seems that the event triggers fine, since my serial log tells me that it does, but if I load a screen on that event, then the button is non-responsive. If I clear the display, I just see a white screen and not the one I should have. I have uploaded the arduino sketch here as well.
I am not sure of the extent of LVGL support that this screen has and I do not have a lot of experience with LVGL unfortunately to troubleshoot this.
LVGL_Demo_App.ino (2.3 KB)