Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ST7789] Ugly artifacts show up when first powering the display. Red square shows up right after uploading new program #3228

Open
zalexzperez opened this issue Mar 15, 2024 · 0 comments

Comments

@zalexzperez
Copy link

Here's what happens when you first power up the display (at 80MHz), using example program "All_Free_Fonts_Demo":

PoweringUp.mp4

Another video showing the red square now:

UploadedCode.mp4

This is running the same code as before, while a new one is being uploaded. After upload finishes, a red square shows up. Then the ESP32 is reconnected to power and the same artifacts appear. Notice the slower screen update, that's because I reduced the SPI frequency to just 1MHz to make the artifacts easier to observe.

I discovered that using the library "Adafruit ST7735S and ST7789 Library" with just this code:

tft.init(172, 320);           
tft.setSPISpeed(80000000);
tft.fillScreen(ST77XX_BLUE);

tft.setTextColor(ST77XX_WHITE);
tft.setRotation(3);
tft.setTextSize(3);
tft.setCursor(20, 20);
tft.println("Adafruit library");

doesn't have the problem (80MHz):

AdafruitLibraryOK.mp4

But when set to something lower like 20MHz, a white stripe with artifacts appears:

AdafruitLibraryBad.mp4

Specs:

Display:
172x320 ST7789 display

SPI frequency: 80MHz (all the example programs work well at this frequency). Tried at different frequencies with this library but it didn't make it go away.

Test board: ESP32 S3 using hardware SPI pins, TFT_CS (45) and TFT_DC (47).

My User_Setup file:
User_Setup.zip

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant