//#include <LiquidCrystal_I2C.h> // https://github.com/johnrickman/LiquidCrystal_I2C
#include <Wire.h>
#include <hd44780.h> // https://github.com/duinoWitchery/hd44780
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
// Set the LCD address to 0x27 for a 16 chars and 2 line display
//LiquidCrystal_I2C lcd(0x27,16, 2);
//hd44780_I2Cexp lcd(0x27); // declare lcd object: auto locate & auto config expander chip
// or autoconfigure:
hd44780_I2Cexp lcd; // declare lcd object: auto locate & auto config expander chip
// Configure 2nd LDC in Wokwi with i2c-address per https://docs.wokwi.com/parts/wokwi-lcd1602
hd44780_I2Cexp lcdB; // declare lcd object: auto locate & auto config expander chip
hd44780_I2Cexp lcdC; // declare lcd object: auto locate & auto config expander chip
hd44780_I2Cexp lcdD; // declare lcd object: auto locate & auto config expander chip
hd44780_I2Cexp lcdE(0x25);
void setup()
{
// initialize the LCD
//lcd.init();
lcd.begin(16,2);
lcdB.begin(16,2);
lcdC.begin(16,2);
lcdD.begin(20,4);
lcdE.begin(20,4);
// Turn on the blacklight and print a message.
lcd.backlight();
lcd.print("AHello, world!");
lcdB.backlight();
lcdB.print("BGoodbye, world!");
lcdC.backlight();
lcdC.print("C______, world!");
lcdD.backlight();
lcdD.print("D , world!");
lcdE.backlight();
lcdE.print("E , CHECK");
}
void loop()
{
// Do nothing here...
}