// ********************
// Code for lerarning how to connect an I2C device
// incomplete without learning sessions
// ********************
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//init display (17 col, 2 rows) and set address to 0x27
LiquidCrystal_I2C lcd(0x27,16,2);
void setup(){
// initialize the lcd
lcd.init();
//turn on backlight
lcd.backlight();
//set Cursor to first col and first row (start counting at zero!)
lcd.setCursor(0,0);
//print "Hello World!" on the display
lcd.print("Hello, world!");
//set cursor to 1 col and 2 row and print "ESP32!"
lcd.setCursor(0,1);
lcd.print("ESP32!");
}
// no main programm necessary for this example
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}