-
Notifications
You must be signed in to change notification settings - Fork 111
Q&A
When creating a new LVGL project there are two main options:
The difference between these templates is that one uses EEZ Flow and the other does not.
With EEZ Flow you can implement basic logic of your application, like changing screens, setting widget properties and working with variables. When you decide to use EEZ Flow please note that you must link with the eez-framework library.
If you don't want to use EEZ-Flow you can still define variables that can update Widget content and user actions that can be attached to event handlers.
Check the native-interface-lvgl-no-flow example. There is a Readme file with the explanations:
Check the native-interface-lvgl-with-flow example. There is a Readme file with the explanations:
Native stands for "implemented in C or C++" - i.e. not managed/implemented by the EEZ Flow engine.
We support "native variables" where get variable and set variable functions must be implemented in C or C++ by you as opposed to the flow variables where they are managed by the flow engine (still you can access these variables from your native, i.e. C or C++ code).
Also, we support "native user actions" where action is implemented in C or C++ as opposed to the user actions that are implemented by using EEZ Flow.
After adding a Button to the page, on clicking it the properties in general tab show only name, no field for label is there.
You need to add Label as a child to Button like this:
Why I'm getting "fatal error: lvgl/lvgl.h: No such file or directory" when compiling Studio generated source files?
Depending on the build system/configuration, lvgl.h
can be included either as lvgl/lvgl.h
or just lvgl.h
(when LV_LVGL_H_INCLUDE_SIMPLE
is defined). There is an option in Settings - Build to select this for generated files:
You are missing either flow_def.c
or //${eez-studio LVGL_NATIVE_VARS_TABLE_DEF}
inside that file:
When you create a new "LVGL with EEZ Flow" project everything is already there. But, if you opened some old project it is possible that something is missing. Also if you converted LVGL project without EEZ Flow support by click this:
then you will not have correct file templates (this is already reported #366 and #377). So, to be sure that everything is there you can copy all the file templates from a newly created project and paste it into your project.
Check this:
Also, new in version 0.14.0: