#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
int ressetPin = 4;
Adafruit_SSD1306 oled (128, 64, &Wire, 4);
void setup() {
oled.begin(SSD1306_SWITCHCAPVCC, 0X3C); // put your setup code here, to run once:
oled.clearDisplay();
}
void loop() {
oled.setTextSize(1);
oled.setTextColor(WHITE);// put your main code here, to run repeatedly:
oled.setCursor(0, 0);
oled.println("good morning");
oled.setTextSize(1);
oled.setTextColor(WHITE);// put your main code here, to run repeatedly:
oled.setCursor(0, 22);
oled.println("hello Safinaz");
oled.setTextSize(1);
oled.setTextColor(WHITE);// put your main code here, to run repeatedly:
oled.setCursor(0, 32);
oled.println("hello Alhussein");
oled.display();
}
Loading
ssd1306
ssd1306