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