#include #include #include // Define the OLED display dimensions #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 32 // Define the reset pin (you can use any GPIO pin) #define OLED_RESET -1 // Create an instance of the SSD1306 display Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); void setup() { // Initialize the serial communication Serial.begin(115200); // Initialize the OLED display if(!display.begin(SSD1306_I2C_ADDRESS, OLED_RESET)) { Serial.println(F("SSD1306 allocation failed")); for(;;); } // Clear the buffer display.clearDisplay(); // Set text size and color display.setTextSize(1); display.setTextColor(SSD1306_WHITE); // Display text display.setCursor(0, 0); display.println(F("Hello, ESP32-S3-Zero!")); display.display(); } void loop() { // Nothing to do here }