Hello everyone,
I ran into an issue with properly connecting a 1.77” ST7735 display to a NodeMCU and displaying text/images on it.
Connection:
GND - GND
VCC - 3V3
SCK - D5 (GPIO14)
SDA - D7 (GPIO13)
RES - D4 (GPIO2)
RS - D3 (GPIO0)
CS - D8 (GPIO15)
LEDA - 3V3
The display outputs an image with defects — lines, flickering, and a very dim picture.
When connected to an Arduino Uno, everything works fine without any artifacts, but it doesn’t work properly with the NodeMCU.
Example code:
(Note: I also tried using the TFT_eSPI library, but it didn’t work either):
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
#define TFT_CS D8 // Chip Select
#define TFT_RST D4 // Reset
#define TFT_DC D3 // Data/Command (RS)
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.initR(INITR_BLACKTAB);
tft.fillScreen(ST77XX_BLACK);
tft.setRotation(1);
tft.setTextColor(ST77XX_WHITE);
tft.setTextSize(2);
tft.setCursor(10, 10);
tft.println("Hello, World!");
}
void loop() {}


