#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
if (!display.begin(SSD1306`_SWITCHCAPVCC, 0x3C)){
Serial.println(F("SSD1306 allocation falled"));
for(;;);
}
}
void loop() {
delay(200);
display.clearDisplay();
display.drawLine(100,20,30,40,WHITE);
display.display();
delay(5000);
display.clearDisplay();
display.fillCircle(64, 32, 10, WHITE);
display.drawRoundRect(10, 10, 30, 50, 2, WHITE);
display.display();
delay(5000);
delay(10);
}