I also have a Seeed Xiao ESP32S3 and a waveshare 1.83 inch LCD display and have tried so many ways to make the display work and still blank! Doing my head in!
// Define GPIO pin numbers for Waveshare 1.83" 240x280 display
#define TFT_CS 2 // GPIO2 (D1)
#define TFT_RST 1 // GPIO1 (D0)
#define TFT_DC 4 // GPIO4 (D3)
#define TFT_MOSI 9 // GPIO9 (D10)
#define TFT_SCLK 6 // GPIO6 (D8)
I have tried numerous libraries and working on this one now;
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
// Define GPIO pin numbers for Waveshare 1.83" 240x280 display
#define TFT_CS 2 // GPIO2 (D1)
#define TFT_RST 1 // GPIO1 (D0)
#define TFT_DC 4 // GPIO4 (D3)
#define TFT_MOSI 9 // GPIO9 (D10)
#define TFT_SCLK 6 // GPIO6 (D8)
// Use Software SPI to match your custom wiring
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST, TFT_MOSI, TFT_SCLK);
void setup() {
Serial.begin(115200);
delay(500); // Give the display power time to stabilize
tft.init(240, 280); // Your screen's resolution
tft.setRotation(1); // Rotate if needed (0–3)
tft.fillScreen(ST77XX_BLACK);
tft.setTextColor(ST77XX_WHITE);
tft.setTextSize(2);
tft.setCursor(10, 10);
tft.print("Display OK!");
}
void loop() {
// Do nothing
}
Display is connected to 5v line as I noticed the 3.3v line was measuring 2.6v and backlight wasnt even coming on. I have tried nearly all libraries and it seams no matter what I try its not working.