Manipulate objects created from the main file in LVGL

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
luquas
Posts: 15
Joined: 01 Jan 2020 17:29

Manipulate objects created from the main file in LVGL

#1 Post by luquas » 15 Feb 2024 12:36

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?

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Manipulate objects created from the main file in LVGL

#2 Post by IvanJeremic » 24 Feb 2024 13:54

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.

luquas
Posts: 15
Joined: 01 Jan 2020 17:29

Re: Manipulate objects created from the main file in LVGL

#3 Post by luquas » 27 Feb 2024 16:54

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.

bobh
Posts: 3
Joined: 14 Nov 2019 04:30

Re: Manipulate objects created from the main file in LVGL

#4 Post by bobh » 28 Feb 2024 03:35

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
Attachments
LVGL_Example_1.7z
(4.47 MiB) Downloaded 10 times

Post Reply

Return to “ARM AI Compilers”