#include <Wire.h> //for i2c communication
#include <Adafruit_GFX.h> //for OLED
#include <Adafruit_SSD1306.h>//for OLED
#define OLED_ADDR 0x3C
Adafruit_SSD1306 display (128,64,&Wire, -1); //screen & library & reset pin (we don't have one -1)
void setup() {
// put your setup code here, to run once:
display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR);
display.clearDisplay(); //clear screen before starting
display.setTextSize(1); //font size between 1 to 8
display.setTextColor(WHITE); //the colors available on OLED are only black & white (usually we choose black backround & white text/image)
display.setCursor(0,0); //choosing where to place text on the screen (starting point)
display.println("Hello Hayoya :)"); //displayed text
display.display(); //comand for printing things on the screen
}
void loop() {
// put your main code here, to run repeatedly:
}