ST7735S I2C 1.8inch TFT Display keep flickering irregularly

Hello,

I have bought a 1.8inch(128*160) display with I2C interface which control chip is ST7735S (I bought from https://item.taobao.com/item.htm?spm=a1z09.2.0.0.40d72e8dLany0n&id=583173435654&_u=d23t1osec2fd). Its pinouts just like the picture below. And I endeavor to use the NodeMCU DEVKIT v1.0 (KNOW MORE GitHub - nodemcu/nodemcu-devkit-v1.0) to connect with the display. However, I am not sure whether the way I connect below is correct. If it is really wrong and how to correct it. (The board bought from https://item.taobao.com/item.htm?spm=a1z09.2.0.0.40d72e8dLany0n&id=531755241333&_u=d23t1osef207)

MY CONNECTION
**TFT DISPLAY ** NODEMCU
BLK GND
CS D8
DC D3
RST D4
SDA D2
SCL D1
VDD 3V
GND GND

Besides, I use the function from Ucglib library try to make the display work. Is it possible that the selected library is not applicable and the display is not working properly?

Ucglib_ST7735_18x128x160_SWSPI ucg(/*sclk=*/ 5, /*data=*/ 4, /*cd=*/ 0, /*cs=*/ 15, /*reset=*/ 2);

TIA

Please post a link to the actual display that you have bought. e.g. Ebay Sale page.
Please post a link to the actual Nodemcu board that you have bought. e.g. Ebay Sale page.

Most displays are 8-bit SPI with a bidirectional Serial Data pin called SDA

If you want to bit-bang SPI on hardware I2C pins, you need to use a SWSPI constructor.
And most importantly, you match the arguments in the constructor with the pins that you have wired to.

I strongly recommend that you try the TFT_eSPI library.

David.

Thanks for your response. I'm sorry for neglect of attaching the purchase link. I have managed to use TFT_eSPI library which have detailed instruction on how to wire and the display can work normally. Thanks again. :smiley:

You can always edit your Original Post. Add the links. Add a note to say that you have added the links.

Clickable links to your purchases are much better than photos or descriptions.
It saves readers asking supplementary questions.

You should be very impressed with TFT_eSPI library. There are lots of examples. And lots of user projects for ST7735 and ESP8266

When TFT_eSPI is running 100%, write the correct constructor for Ucglib and that library should work 100% too. (At least Oliver's other library: U8g2lib works on most target boards)

Welcome to the Forum.

David.

This topic was automatically closed after 120 days. New replies are no longer allowed.