@bluejets I have a display similar to the one you show but the one I have does not include a SD card slot.
I hooked the display up to an ESP32, I have never used the Adafruit library but I did get some results with the following code. For some reason it did not fully fill the display it left a gap of 1 pixel along the right side and 1 pixel along the bottom edge, I wasn't too worried about that for now I just wanted to make sure the wires were landed in the right place.
My tft also had 8 pins for the display and if I look at your picture they are labelled from left to right
BL CS DC RES SDA SCL VCC GND
I did not hook up the BL (backlight) pin but the remaining 7 I connected like this
CS=5 DC=4 RES=2 SDA=SPI_MOSI SCL=SPI_CLOCK VCC=3.3V GND=GND
Yours may not be exactly the same but the above should give you a hint to how it should be connected.
This got me to a point where the display was cycling between red green and black, see if you can achieve the same.
Code:
#include <Adafruit_ST7735.h> // include Adafruit ST7735 display library
#include <SPI.h> // include Arduino SPI library
// define ST7735 TFT display connections
#define TFT_RST 2 // reset line (optional, pass -1 if not used)
#define TFT_CS 5 // chip select line
#define TFT_DC 4 // data/command line
// initialize Adafruit ST7735 TFT library
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup(void) {
SPI.begin();
pinMode(TFT_CS, OUTPUT);
digitalWrite(TFT_CS, HIGH);
// initialize ST7735S TFT display
tft.initR(INITR_BLACKTAB);
tft.fillScreen(ST77XX_BLUE);
}
void loop() {
delay(5000);
tft.fillScreen(ST77XX_RED);
delay(5000);
tft.fillScreen(ST77XX_GREEN);
delay(5000);
tft.fillScreen(ST77XX_BLACK);
}