-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LVGL 9 support #21
Comments
Hi @nicklasb, Thank you very much for your feedback! I completely agree with your point of view. The migration from LVGL 8 to 9 should not be too difficult, with the main work likely involving re-exporting images and other resource files. It looks like it's time to put this into the plan. Additionally, I’ve been considering implementing a C++ layer for GUI abstraction based on LVGL and enabling a dynamic UI generation approach similar to LVGL 9’s XML-based system. This would better align with modern UI design practices. |
Hi @Lzw655, |
Ok, sounds promising. When will this happen? |
@Lzw655 So I sat down and put down a few hours to port esp-brookesia it to LVGL 9, and as expected, most was pretty obvious (lv_img_dsc_t, lv_obj_send_event and so on), but after a while I got really into the weeds as I ended up getting issues like this, code I risked breaking without being able to understand how to fix it. For example, I realize that the gesture is in the user data, but I feel like I venture into areas where I am unsure of intents makes to many changes where I assume:
Actually I think I didn't have much left to do had I understood the code, you'd probably be able to do it much quicker. |
Hi @espzav, Awesome! This is much more convenient than manually using a web tool to convert images. Thank you for sharing! |
I think the earliest will be mid-March. |
You are right, the code structure of esp-brookesia still needs optimization. I think the issue in the example you provided is due to LVGL9 hiding many element structures in lvgl_private.h, which is not included by default. For example, |
Checklist
Feature description
LVGL9 has been out a year now, it would be great if esp-brookesia moved to it before it has a lot of users.
I see no reason for a really new library like esp-brookesia to move to an old LVGL version as it is unlikely that old projects would move directly to esp-brookesia anyway.
(Note also that Squareline support LVGL 9, and also that LVGL are building an open generator themselves)
Use cases
People not having to move from LVGL 8 to 9 as one of the first things they will have to do if they start using esp-brookesia in a year when LVGL8 naturally goes out of focus for the LVGL project (8.x is soon to be 4 years old, a really long time in LVGL-time).
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: