Zitat Zitat von Moppi Beitrag anzeigen
Manche Bibliotheken fehlen bei mir:

//#include <ESP_SSD1306.h> // Modification of Adafruit_SSD1306 for ESP8266 compatibility
//#include <Adafruit_GFX.h> // Needs a little change in original Adafruit library (See README.txt file)
//#include <Fonts/FreeSansBold12pt7b.h> //
//#include <Fonts/FreeSans9pt7b.h> //
//#include <Fonts/FreeMono12pt7b.h> //

Die habe ich deshalb rausgenommen. Dann kann er mit display nichts anfangen: 'display' was not declared in this scope
ich hatte sie drin gelassen, weil man dann auch strings aufs OLED ausgeben kann, unabh. von Serial.
wenn du kein OLED hast, macht das dann auch nichts.
Adafriut libs gehen über den library manager oder hier: https://github.com/adafruit/Adafruit-GFX-Library
<ESP_SSD1306.h> ist hier: https://github.com/ThingPulse/esp8266-oled-ssd1306