#include <LiquidCrystal_I2C.h>
int lcdColumns = 16;
int lcdRows = 2;
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
LiquidCrystal_I2C lcd2(0x28, lcdColumns, lcdRows);
byte heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000
};
byte skull[8] = {
0b00000,
0b01110,
0b10101,
0b11011,
0b01110,
0b01110,
0b00000,
0b00000
};
void setup() {
lcd.init();
lcd.backlight();
lcd.clear();
lcd.createChar(0, heart);
lcd.createChar(1, skull);
lcd2.init();
lcd2.backlight();
lcd2.clear();
lcd2.createChar(0, heart);
lcd2.createChar(1, skull);
}
void loop() {
lcd.setCursor(0, 0);
lcd.print("Hello World!");
lcd.setCursor(0, 1);
lcd.write(0);
lcd.print(" TEKO ");
lcd.write(1);
lcd2.setCursor(0, 0);
lcd2.print("My second screen");
lcd2.setCursor(0, 1);
lcd2.write(0);
lcd2.write(0);
lcd2.print(" TEKO ");
lcd2.write(1);
lcd2.write(1);
}