• 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

CYD – background color and front text fonts colors reverted (white is black and vice versa)

Q&A Forum › Category: ESP32 › CYD – background color and front text fonts colors reverted (white is black and vice versa)
0 Vote Up Vote Down
Maciej asked 3 days ago

Hi Guys, I’m completly new with ESP32 programming and actually going through LVGL book by Rui and Sara – practical excercises. Starting first labs I noticed that background color that should be white on your samples is balack in my case and black fonts from your samples are white in my case. Is this something I can manage on my side or this is just bahavior of my CYD (got one from AliExpress). Thanks in advance for your answer.

Question Tags: CYD colors behavior
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 days ago

Hi.
 
You probably have a board that has two USB ports?
If that’s the case, it’s a little different than the one we use and requires a few changes in the User_setup.h file.
 
You may need to edit it to uncomment the following lines:
 
#define ST7789_DRIVER
#define TFT_RGB_ORDER TFT_BGR
#define TFT_INVERSION_OFF
 
Then, solve the file and compile and upload again to see the result.

Let me know if this solves the issue.
 
Regards,
Sara

0 Vote Up Vote Down
Maciej answered 2 days ago

Hi Sara, many thanks for yout tip, it resolved my issue. I’ve got my CYD before I’ve got your book, otherwise I would follow your recomendations on getting the right one 🙂

0 Vote Up Vote Down
Sara Santos Staff answered 2 days ago

Great.
I’m glad everything is working as expected now.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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

  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 Version 1.7 November 28, 2025
  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 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.