I’ve been trying to get a screen working on my ESP32S3 for over 3 day with no luck. Can some please help me out with a set-up that will work? The following is what I have been trying.
Seeed Studio Xiao ESP32S3
I have tried a few screens:
2.42" 128x64 OLED SSD1309, 7pin, set to SPI
Screen inputs: GND, VCC, SCK, SDA, RES, DC, CS
0.96" 128x64 OLED JMDO.96C, 3 color SSD1306, 4pin, SPI/ i2C/ IIC
Screen inputs: VCC, GND, SCL, SDA
Arduino IDE 2.3.4
-Xaio ESP boards loaded
Loaded Libraries:
- Adafruit BusIO
- Adafruit GFX Library
- Adafruit SSD1306
Sample sketch:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1 // Reset pin (not used)
#define SCREEN_ADDRESS 0x3C // Common I2C address for OLED displays
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
Serial.begin(115200);
Wire.begin(6, 7); // (SDA, SCL) -> (D6, D7)
if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println("SSD1306 not detected! Check wiring.");
while (true); // Stop execution
}
Serial.println("SSD1306 detected!");
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(10, 25);
display.println("Hello, World!");
display.display();
}
void loop() {
// Nothing here, text stays on screen
}
The sketch was changed to reflect the different screens and comm protocol. Also, in my trouble shooting, I tried other SDA and SCL pins on the MC with the sketch reflecting any changes.
I loaded up the Blink Sketch to make sure the MC wasn’t totally dead. I also used Copilot and Chatgpt to do deeper trouble shooting to get something kind of reaction. But all the different test sketch’s had no results.
I also have a Waveshare 1.69" LCD Display Module 240x280 (SPI) and a 1602A screen to try but if I can’t get the first 2 screens to work, I think I’m going to have issues with these too.
Lastly, I also ordered new XIAO ESP32C6, SAMD21 and an additional ESP32C3 for just in case I smoked my original MC.
I need a full step-by-step tutorial/ instruction that includes connecting the screen wires to the proper pins, working sketch and proper setup for the IDE.
I have many MC’s and screen combinations to try.
Any help would be awesome and greatly appreciated!