#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Wire.h>
//für weiß als farbe nehme 1
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
Serial.println(F("SSD1306 allocation failed"));
for (;;);
}
}
void loop() {
display.clearDisplay();
display.drawRect(0, 0, 128, 64, 1);
display.drawRect(16, 24, 96, 16, 1);
display.fillRect(18, 26, 92, 12, 1);
display.display();
}