#include <LiquidCrystal_I2C.h>
#define I2C_ADDR1 0x27
#define LCD_COLUMNS1 16
#define LCD_LINES1 2
#define I2C_ADDR2 0x20
#define LCD_COLUMNS2 16
#define LCD_LINES2 2
LiquidCrystal_I2C lcd1(I2C_ADDR1, LCD_COLUMNS1, LCD_LINES1);
LiquidCrystal_I2C lcd2(I2C_ADDR2, LCD_COLUMNS2, LCD_LINES2);
void setup() {
// put your setup code here, to run once:
lcd1.init();
lcd1.backlight();
lcd2.init();
lcd2.backlight();
lcd1.setCursor(3,0);
lcd1.print("Hello, LCD1!");
lcd1.setCursor(2,1);
lcd1.print("Display LCD 1");
lcd2.setCursor(3,0);
lcd2.print("Hello, LCD2!");
lcd2.setCursor(2,1);
lcd2.print("Display LCD 2");
}
void loop() {
// put your main code here, to run repeatedly:
}