Hello guys, I am new here. It is a pleasure to discover things with your tutoriel but i wanted to learn more so i choose to start with the lvgl ebook, nevertheless i keep getting errors when compiling:
- i got a folder related error which was due to the steps where we had to put the demos and exemples folder in src. ( I undid that step and everyrhing started working)
- I uploaded the first code to show ” hello, world!” but i could see nothing appart some grey pixels. ( https://imgur.com/gallery/sad-story-about-lvgl-7fEUPJn )
( it is the first code of the book ) https://pastebin.com/pZ2de8tS
So i changed #define SCREEN_WIDTH 320 to #define SCREEN_WIDTH 240
and #define SCREEN_HEIGHT 240 to #define SCREEN_HEIGHT 320
I now got something correct but it isn’t well oriented ( https://imgur.com/gallery/now-its-work-i-dont-know-how-O0huiEr )
Do you know what i should do to heve the same orientation( landscape mode) as the ebook ?
Hi.
That error started happening with the new version of the LVGL library that was released a few days ago. There were some breaking changes in the update.
Our examples work with LVGL library version 9.1, but get messed up with version 9.2.
We’re currently working to update our examples to be compatible with version 9.2. We’ll publish a new version of the eBook tomorrow with the updated examples that work with version 9.2.
Thanks for your understanding.
You’ll receive an email at the time of the new update.
Regards,
Sara
OMG, I have been trying to sort out the issues I was having too. I tried the yellow display and then I wired up a 2.8 TFT to an ESP32 and got the same issues.
I had to rotate the screen with the “lv_dislpay_set_rotation()” and then I had to change the W to 240 and H to 320 to fill the screen.
And all seemed to be working ok until I came to the “Button” and the “touch” was all out of alignment, I found that if I changed the screen W & H back to 320×240 the “touch” seemed to align back to the centre of the screen, but everything else was off.
I was going to ask about the issues, but saw this post, so I rolled back LVGL to 9.1 and everything is working properly.
Hahaha, oh well, it is a good learning curve. Enjoying the book,
Thank you
Regards
Neil Woodmansey
Hi.
A new version of the eBook was released yesterday (version 1.4).
It is now compatible with LVGL version 9.2.
Make sure to get the new codes on the new download links in the ebook.
Regards,
Sara