I am desperate with LVGL. I could not compile any LVGL code from examples on website and forums. I tried to start from HelloWorld but how to print text with this? Million commands which rely on hundreds of libraries. Even on website example relies on non existent functions, cannot be found on internet (lv_screen_active()).
How you guys manage with LVGL? Can you share any code i can compile?
As far I know, LGVL library doesn't work alone - it requires a low-level display library. Therefore, the examples of LVGL depends of the display library and won't compile without it.
Or provide complete information. Display you want to use, with link, and processor/board you want to use, also with link if not a well-known one.
Then we can test-compile for you.
-jz-
Display is ESP32S3 Dev Module in Arduino IDE.
There are pack of examples and libraries from vendor which work ok.
I want just a sketch which will print HelloWorld in the middle of display so i'll understand how to work with. I tried this example from LVGL.io and no luck. I'd prefer VSCode and PlatformIO because it is faster compiling.
I installed LVGL from Library Manager, followed instruction from the example LvglHelloWorld.ino to configure it, and modified the example for one of my SPI TFTs:
/* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */
//Arduino_DataBus *bus = create_default_Arduino_DataBus();
Arduino_DataBus *bus = new Arduino_HWSPI(17, SS); // ESP32
/* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */
//Arduino_GFX *gfx = new Arduino_ILI9341(bus, DF_GFX_RST, 0 /* rotation */, false /* IPS */);
Arduino_GFX *gfx = new Arduino_ILI9486_18bit(bus, 16, 0, false);
and it compiles for ESP32 (Wemos LOLIN32 Lite).
Not yet tested if it runs. Maybe later.
Since then i managed to rule LVGL and this particular display. Even on VSCODE (which doesn't freeze and strangely "Offline" like ArduinoIDE).
Gonna post about findings if someone interested.
Hello, I saw your entire post, I am starting with ESP32, I want to compile something using LVGL, and no matter what I do, I always have many errors in the compilation, could you help me on how to start understanding and managing LVGL?
From already thank you very much
I just bought this display from Aliexpress. Spent hours and hours. First off I had to downgrade Espressif ESP32 board to pre 3.x.x, which is 2.0.17. I had it working at one time, but yet hit a block again. I'm to the point of tossing it into a box for when they have better support. I had used the PDQGraphics Test. Again it's not working. I would like something basic to at least get it going. But so far spent too many actual days messing with it.
Please tell me which board you bought; is it the Display mentioned in the preceding post?
Why did you need to downgrade the ESP32 package?
What error messages did you get? Or what works and what doesn't?
Note that this topic is quite old and I didn't use Arduino_GFX almost since then.
I might do a test if you provide the complete code in a code window, "< code/ >" command icon.
Also put any error output in a code window, please.
In general, trying to help someone who is already frustrated, is rarely productive.
-jz-
Please tell me which board you bought; is it the Display mentioned in the preceding post?
Yes. That's the one.
Why did you need to downgrade the ESP32 package?
When I used the PDQgraphics test using the latest of the esp32 by Expressif I received a lot of errors.
What error messages did you get? Or what works and what doesn't?
Here is one: error: 'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'?
It's currently working this morning again, so don't have the error. But when I was searching for others that had the similar issues and also output from Copilot said to downgrade to pre-3.x.x versions. When I did, at least the errors went away.
Note that this topic is quite old and I didn't use Arduino_GFX almost since then.
I might do a test if you provide the complete code in a code window, "< code/ >" command icon.
Also put any error output in a code window, please.
The PDQgraphicstest is quite complex, with 4 include files. Since it's working I'm trying to get a snapshot of what library version, special Tools settings, etc.
In general, trying to help someone who is already frustrated, is rarely productive.
lol. I understand. You're no fun. Just kidding. With it currently running and hopefully grab all the right configuration I have something to work with. But pulling out the pieces will be interesting. I might also try some of the more simple examples to see if those can run too. If you have something more simple I'm open.
Wish there was a way on here to contact people directly.