I have made a screen with edgeline but want to try it on my esp32 and ili9431 screen with arduino IDE. But I don’t know how, So please tell me how to use c and h files and what steps are to be done, Thanks for help.
You can look at my project here:
Into file .zip attached you can also found setup for libraries, but you use another Screen, so take care.
I dont use all files C exported from Edgeline, i just copy object definitions and Variables and i put in setup routine (variables at start).
Also, i dont use Button (that need a label txt) but i use Label directly and i put a handler of em at start of program…and all work fine
Thanks @gabriele_ponte this solution gives me pretty much idea to work with my screen, but can’t we use the .c site directly in .ino
like import .c and import .h files?
Yes, you can
I have this in my .ino file:
#include "Adafruit_ILI9341.h" #include <XPT2046_Touchscreen.h> #include "Adafruit_GFX.h" #include <lvgl.h> #include "FL_photo_functions.h" #include "FL_test_ui.h"
FL_test_ui.c contain this include:
There is also declaration for images:
/* IMAGES */ LV_IMG_DECLARE(img_left_arrow_png); // assets\left_arrow.png LV_IMG_DECLARE(img_right_arrow_png); // assets\right_arrow.png LV_IMG_DECLARE(img_fl_logo_320x240_png); // assets\FL_logo_320x240.png
Hope, this will help.
One thing which I did not master yet is switching screens, but I had no time to look at this in past.
but after searching i didn’t found an " example trace/path" to follow
so, after including my .h and moving the files in my src (platformio)
what i have to write to show the interface on the display? (I mean in setup and loop and before)
The example “LVGL_Arduino” is not helping a bit and seems that i have to call “BuildPages()” from my .c
Is there any example? (Using the .c and .h)
Hi, here is simple sketch for Arduino for ILI9341 TFT LCD, which includes exported files from EdgeLine.
Adafruit_ILI9341_EdgeLine_export.zip (3.8 KB)
I´m using v7.11 and here is my config.
lv_conf.h (24.9 KB)
i already had a look,
i will try this evening.
Thanks again ^^
Your code is quite similar to the example in platfromIO
but some calls were different, i guess for a different version of lvgl.
I had however to modify some code in the exported c file.
More i add widgets, more are the rows with errors
I really hope that the new version will be available with a kind of fixed release of lvgl to avoid these behaviours
I am waiting last release of Edgeline and i finish this import from EdgeLine C files and save to .ino
Now i add SEARCH and substitute for fonts (or any word you want) with highlighting of searched word or substitute.
And structure is this:
- imports and global variables
- setup section where add Edgeline objects
- Loop with lv_task_handler();
- user routines