#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C lcd_27 = LiquidCrystal_I2C(0x27, 16, 2);
LiquidCrystal_I2C lcd_26 = LiquidCrystal_I2C(0x26, 16, 2);
void setup() {
lcd_27.init();
lcd_27.backlight();
lcd_26.init();
lcd_26.backlight();
}
void loop() {
lcd_27.setCursor(2, 0); // Set the cursor on the third column and first row.
lcd_27.print("Hello World!"); // Print the string "Hello World!"
lcd_27.setCursor(2, 1); //Set the cursor on the third column and the second row (counting starts at 0!).
lcd_27.print("LCD tutorial");
lcd_26.setCursor(2, 0); // Set the cursor on the third column and first row.
lcd_26.print("Hello World!"); // Print the string "Hello World!"
lcd_26.setCursor(2, 1); //Set the cursor on the third column and the second row (counting starts at 0!).
lcd_26.print("Adress 0x26");
}
// How to connect multiple LCD displays to one board
// https://www.youtube.com/watch?v=Jj2KOFw12Kc
// wokwi-lcd1602 Reference (about change attributes)
// https://docs.wokwi.com/parts/wokwi-lcd1602#attributes
// About LiquidCrystal_I2C
// https://www.makerguides.com/character-i2c-lcd-arduino-tutorial/