#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // Changed for LCD1602 0x27 /0x3f I2C address and columns by rows.
uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0}; // Bitmap character example
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
lcd.init();
lcd.backlight();
lcd.createChar(1, heart);
}
void loop() {
lcd.home();
lcd.print("ESP8266 with");
lcd.setCursor(13, 0); // columns, rows !! care the order.
lcd.write(byte(1)); // write sprite character code at Cursor location
lcd.setCursor(0, 1);
lcd.print("LiquidCrystalI2C");
delay(10); // this speeds up the simulation
}