#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "Adafruit_FRAM_I2C.h"
#include <Wire.h>

#include "OLEDs.h"

#define FRAM_ADDR 0x50  // the default address!
Adafruit_FRAM_I2C i2fram;

String Display1 = "OLED 1";  // Fiktiver Wert für Testzwecke
String saved;

#define LED_PIN 3;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  uint16_t num;

  pinMode(LED_PIN, OUTPUT);

  if (i2fram.begin(FRAM_ADDR)) {  // you can stick the new i2c addr in here, e.g. begin(0x51);
    Serial.println("Found I2C EEPROM");
    TCA9548A(0);

    if (!display.begin(SSD1306_DISPLAYALLON_RESUME, SCREEN_I2C_ADDR)) {
      while (true)
        ;
    }
  } else {
    Serial.println("I2C EEPROM not identified ... check your connections?\r\n");
    while (1) delay(10);
  }

  i2fram.readObject(0x00, saved);  // Zuvor gespeicherter String wird aus FRAM gelesen
}

void loop() {
  oledDisplayCenter(0, saved);
}
$abcdeabcde151015202530fghijfghij
tca9548aBreakout