#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(128,64,&Wire,-1);
void setup() {
//put your setup code here, to run once:
Serial.begin(115200);
if(!display.begin(SSD1306_SWITCHCAPVCC,0x3C))
{
Serial.write("failed....");
for(;;);
}
display.clearDisplay();
display.setTextSize(2);
display.setCursor(0,10);
display.setTextColor(WHITE);
display.println("hey there...");
display.display();
delay(1000);
}
void loop() {
//put your main code here, to run repeatedly:
delay(10); //this speeds up the simulation
}