• 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

eBook error (all chapters)

Q&A Forum › Category: Other › eBook error (all chapters)
0 Vote Up Vote Down
Gilbert Hersschens asked 4 months ago

In all chapters the setup code example contains this:

// Set the Touchscreen rotation in landscape mode
// Note: in some displays, the touchscreen might be upside down
// so you might need to set the rotation to 0: touchscreen.setRotation(0);
touchscreen.setRotation(2);

Value 0 or 2 sets the touchscreen in PORTRAIT mode, not LANDSCAPE. Portrait is the correct value.
The only purpose to set the touchscreen rotation to 0 or 2 is to align the origin of the touchscreen with the origin of the display. Other than that, the touchcreen must never be rotated when using LGVL.

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

Hi.
Does your CYD board have two USB ports?
Regards,
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.