// https://wokwi.com/projects/359393073615174657
#include <Wire.h>
#include <hd44780.h> // https://github.com/duinoWitchery/hd44780
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
//hd44780_I2Cexp lcd(0x27); // declare lcd object: auto locate & auto config expander chip
// or autoconfigure:
hd44780_I2Cexp lcd(0x27); // 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
void setup()
{
// initialize the LCD
//lcd.init();
lcd.begin(16,2);
lcdB.begin(16,2);
lcdC.begin(16,2);
lcdD.begin(20,4);
// Turn on the blacklight and print a message.
lcd.backlight();
lcd.print("A Hello, world! 1234567890");
lcdB.backlight();
lcdB.print("B of the world! 1234567890");
lcdC.backlight();
lcdC.print("C Sea world! 1234567890");
lcdD.backlight();
lcdD.print("D Goodbye, world! 0123456789123456789012345678901234567890");
}
void loop()
{
// Do nothing here...
}