#include "clI2CScanner.h"
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_WIDTH 128 // OLED Display Breite, in pixels
#define SCREEN_HEIGHT 64 // OLED Display Höhe, in pixels
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire,OLED_RESET);
clI2CScanner SCANNER;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("I2C-Scanner ESP32");
SCANNER.ZeigeVorhandeneI2CGeraete();
SCANNER.IstI2CGeraetDa(0x28);
Serial.println(SCANNER.GetI2CStatusMeldung());
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
delay(1000);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.print("012345678901234567890");
display.setCursor(0, 8);
display.print("012345678901234567890");
display.setCursor(0, 16);
display.print("012345678901234567890");
display.setCursor(0, 24);
display.print("012345678901234567890");
display.setCursor(0, 32);
display.print("012345678901234567890");
display.setCursor(0, 40);
display.print("012345678901234567890");
display.setCursor(0, 48);
display.print("012345678901234567890");
display.setCursor(0, 56);
display.print("012345678901234567890");
//display.setTextColor(BLACK, WHITE);
display.display();
display.startscrollright(0x02, 0x03);
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
}