I am trying to get a 1.8" TFT screen to work to work using a Raspberry Pi Pico 2 however, my code doesn't seem to be working. My Backlgiht turns on so I know it is powered but thats it. My current code is:
`#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
#define TFT_CS 17
#define TFT_SCK 10
#define TFT_SDA 11
#define TFT_RST 20
#define TFT_DC 21
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.initR(INITR_BLACKTAB); // initialize a ST7735S chip, black tab
tft.fillScreen(ST7735_BLACK); // Fill the screen with Black
tft.setRotation(1); // Set rotation to Portrait mode (set to '1' for Landscape)
tft.setTextWrap(false);
tft.drawRoundRect(0, 0, 83, 31, 10, ST7735_CYAN); // Draw a Rectangle x,y, across, down with corner & Colour Values
tft.drawRoundRect(0, 35, 160, 93, 10, ST7735_CYAN); // Draw a Rectangle x,y, across, down with corner & Colour Values
tft.drawLine(80, 65, 80, 110, ST7735_CYAN);
}
void loop() {
}`
I also hvae BL and VCC to 3.3V and GND to GND on pin 23. Is there anyone who can help me out? im unsure of my exact model but it is simlar to this one: LINK