Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.75k stars 1.07k forks source link

Text fits not in screen/does not clear screen #165

Closed biejay closed 6 years ago

biejay commented 6 years ago

Hey Guys,

i just hooked up my ESP8266 to an ST7735 128x128 TFT Screen (ST7735 from ebay)

I did connect everything as mentioned in the User_setups\Setup2_st7735.h file. (LED=Vin SCK=D5 SDA=D7 A0=D3 RST=D4 CS=D8 GND=GND VCC=3V3)

But when i'm trying your digital clock file for example, it doesnt fit on screen properly? also i got the problem, that the old texts wont get completely cleared out. Could you please help me with that?

20180625_004503

biejay commented 6 years ago

UPDATE: I'm super dumb, had to change the selected driver in the user_setup.h file to ST7735 obviously. The grafic error in the upper right seems to come from the font. changed font and now everything looks great!

Bodmer commented 6 years ago

The example is written for a different size screen e.g 128x160, so the digits will not fit the 128x128 screen you have.

I will create some examples for these smaller screens at some point.