void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
void setup()
//Inicializa la pantalla OLED
if(display.begin())
Serial.println(pantalla oled);
while (1)
}
voidloop
//borra la pantalla y muestra temperatura en la pantalla oled
//enciende LED 1 y 2
clear.display0
display.setcursor(3.6)
display.show.temperature
inOLEDscreen
photoresistor.midtemperature
display.println(wheather)in SSD1306OLEDscreen
delay(1000);
//borra la pantalla y muestra nada.