#include <WiFi.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
WiFi.begin(ssid, pass);
//Serial.println("Conectando");
lcd.print("Conectando");
delay(1000);
lcd.clear();
while(WiFi.status() != WL_CONNECTED) {
lcd.print(".");
delay(500);
}
lcd.clear();
lcd.print(" Conectado.");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}