• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LVGL Orientation

Q&A Forum › Category: ESP32 › LVGL Orientation
0 Vote Up Vote Down
Wartan59 asked 9 months ago

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:

  1. 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)
  2. 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 ?

Question Tags: LVGL
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

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

0 Vote Up Vote Down
Neil Woodmansey answered 9 months ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.

A new version of the eBook was released yesterday (version 1.4).

  • https://rntlab.com/module-1/esp32-lvgl-ebook/

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

0 Vote Up Vote Down
Neil Woodmansey answered 8 months ago

Thanks Sara.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.