Page 1 of 1

Manipulate objects created from the main file in LVGL

Posted: 15 Feb 2024 12:36
by luquas
Good morning, LVGL in necto studio is very good,
but I'm confused how to manipulate the objects created from the main file, there's an example of how to do this.
Another thing, how do I use external flash with LVGL?

Re: Manipulate objects created from the main file in LVGL

Posted: 24 Feb 2024 13:54
by IvanJeremic
Hi,

There are no LVGL examples at the moment, you can enter the source of the of a LVGL project (lvgl.h file), in there you can find headers for all the tools in LVGL.

As for your other question, if I understood you correctly you want to show data from your Flash module on the screen?

If so you can use something like the code below, "temp_str" is the data from the Flash module and 'Label_0" is the tool from LVGL where you will write the data.
strcpy (main_screen.Label_0->text.caption, temp_str);
main_screen.Label_0->text.font.color = 0xfe40;
vtft_draw_component(&vtft, main_screen.label_0);

Regards,

Ivan.

Re: Manipulate objects created from the main file in LVGL

Posted: 27 Feb 2024 16:54
by luquas
Good afternoon, thanks for the response.
But the issue of memory, I'm talking about saving the fonts and images created in the nection designer and recording in the external flash to save the internal one.

Re: Manipulate objects created from the main file in LVGL

Posted: 28 Feb 2024 03:35
by bobh
Not sure if this is what you are looking for but here is an example I did when doing a simple LVGL test.
You will need to change you processor, dev board and display to what you are using.
Best regards,
Bob

Re: Manipulate objects created from the main file in LVGL

Posted: 07 May 2024 17:32
by luquas
thank you very much.