LVGL v8 is available for testing!

… Ok, I gave up on the upgrade to V8 for now. There are many changes in lv_config_template.h and I need to take the time review one by one an apply the changes manually.

Basically it’s a three way merge between the changes by the LVGL team and my own custom changes, and that’s painful. :wink:

I hoped for a smoother migration.

Hmm… thanks for bringing that to our attention. I don’t think we really want LVGL 8 published on PlatformIO yet as there are still minor API changes happening.

@kisvegabor Do you know of a way to unpublish from PIO?

I agree that the migration between major versions has never been the cleanest, as one either has to rewrite their entire application, or stick with the older major release and patch it once the 1-year support timeline elapses.

Ideally I would like to make a proper backwards-compatibility layer that lets v7 applications run on v8, but unfortunately my time is limited, and v8 had API rewrites to pretty much all of the major components (styles, widgets, and rendering), meaning that it wouldn’t be a trivial project.

Thanks for the clarifications @embeddedt. I will wait for V8 to be officially released and I when I will be allocate sufficient time to do a careful migration. I hope that by then there will be some documentation with hints to guide the migration.

(My main motivation to switch to V8 is the new hooks to control the appearance of individual chart division lines).

Fixed

It’s possible but needs some work. Let’s postpone it a little, to make progress more critical things.

See here: http://docs_compiled.lvgl.io/8.0/overview/style.html#add-styles

I have added dev tag to library.json. I hope it helps.

Please let me know what ware the main obstacles. New lv_conf.h? No widgets? New API?

Mostly the new lv_conf.h. It requires a three way merge between my customization and and V8 many changes. Three way merges are painful in general.

I think I didn’t get to the ‘No widgets’ or ‘New API’ parts because of the lv_config.h so can’t comment about them.

You can check it here https://libraries.io/platformio/lvgl

Currently it shows me 8.0.0.

BTW, have you considered the concept of LTS (Long-term support - Wikipedia)? That is, providing long term support for a small set of stable versions without requiring users to upgrade to the latest? Commercial customers may like it.

Hi

Thanks for all the fixed bugs!! i saw also the little changes w/ char and cursur. it’s ok it run fine (easyer to handle)!!

Well no need to change… i call lv_group_set_editing(g, false); on each tabview change and it works fine : no need to click twice (short and long clik)…

See here: http://docs_compiled.lvgl.io/8.0/overview/style.html#add-styles
Ok thanks, these link to V8 doc is a good news!!..

Now i 'd like to handle the Keys sent by an encoder but how can i fire a LV_SEND_KEY event?? I have not yet succeeded until now!!
Best Regards

We will release v8 very soon so probably it isn’t worth bothering with it.

Yes, see our new release policy here: Introduction — LVGL documentation

In short, there will be a new minor version every 3-4 months and they will be supported for a year.

The new docs is just moved to it’s final place https://docs.lvgl.io/

It should work:

uint32_t k = LV_KEY_NEXT;
lv_event_send(obj, LV_EVENT_KEY, &k);