#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Wire.h>
const int screen_width = 128;//height in pixels of our display
const int screen_height = 64;//width in pixels of our display
const int adress = 60;//every device with sda and scl have a unique adress
//create our first instance of ssd1306, name it screen
Adafruit_SSD1306 screen(screen_width,screen_height, &Wire, -1);
void setup() {
// initiate our display
screen.begin(SSD1306_SWITCHCAPVCC,adress);
screen.clearDisplay();//removes any writing from the screen
delay(10);
screen.drawRect(screen_width/2 - 15, screen_height/2 - 15, 30,30, 1);
screen.display();
}
void loop() {
// put your main code here, to run repeatedly:
}