#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// Define the screen dimensions
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
// Create an OLED display object
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); // -1 for no reset pin
void setup() {
// Initialize the OLED display with the I2C address
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Use 0x3C for the I2C address
// Clear the display buffer
display.clearDisplay();
// Set text size and color
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
// Display a message
display.setCursor(0, 0); // Start at top-left corner
display.print("Hello, i am sasnada bandara");
// Send the buffer to the display
display.display();
}
void loop() {
// Nothing to do here for now
}