#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Initialize the LCD connected to the I2C address 0x27
lcd.init();
// Turn on the backlight.
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello, World!");
}
void loop() {
// Set the cursor to column 0, line 1
lcd.setCursor(0, 1);
// Print the number of seconds since reset:
lcd.print(millis() / 1000);
delay(1000);
}
Loading
esp32-c3-devkitm-1
esp32-c3-devkitm-1