The problem is essentially the same as the one describer in my previous post: https://rntlab.com/question/cyd-ebook-error-chapter-2-2/ .
- incorrect definitions for screen width and height for landscape orientation
- contradicting parameters for setting touch screen and display orientation in setup()
- lv_display_set_rotation() doesn’t work in setup(). Using tft.setRotation() does the job.
For details and images, see https://drive.google.com/file/d/1-JTQyPRAOaSCDeYZfJmenvRFWv-yAd2Y/view?usp=sharing
1 Answers