I have a complex UI (User Interface) which includes several different screens, so it is a lot of code which complicates analyzing the code of my project.
How can I create the LVGL user interface in a different file and just include it and call its methods and objects to create and display them as necessary?
Not sure if I’ve picked you up right, but check this guy out. https://www.youtube.com/watch?v=HtYlQXt14zU
Thanks Mike. I saw that before, but that is just for general procedures/functions. My problem comes with LVGL objects, as creating them in a separate file (with just procedures to create the user interface) makes them unaccesible to the main “.ino” file.
The files should be structured as follows:
– Main “.ino” file with the core of the program (it includes the setup() and loop() procedures).
– Extra file with procedures just to create the complex LVGL user interface.
From main file, I want to call/execute the procedures in the extra file, and then, from main file, be able to reference the LVGL objects created in the extra file and take some actions on them (buttons, sliders, whatever the user interface has).
Hope I explained myself.
Ok, so you’re obviously well ahead of me. Sorry I was unable to help. Good luck with your project. I too have the LVGL book and I’m desperate to get started on it, but I have too many other things on the go just now.
All the best