/* Hello Wokwi! */
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
const int firstLine = 0;
const int secondLine = 1;
const int firstSpace = 0;
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(firstSpace + 1, firstLine);
lcd.print("Hello, Wokwi!");
}
void loop() {
lcd.setCursor(firstSpace + 7, secondLine);
lcd.print(millis() / 1000);
if ((millis() / 1000) == 3)
{
delay(1000);
lcd.setCursor(1, 0);
lcd.print(" ");
lcd.setCursor(1, 0);
lcd.print("New Line");
}
}