Arduino controls two 1602 LCD
2023-04-27
One LCD need to set the jump at back to have another I2C address
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
LiquidCrystal_I2C lcd2(0x26,16,2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("Hello, world!");
lcd.setCursor(0,1);
lcd.print("Quantr Limited !@#$");
lcd2.init();
lcd2.backlight();
lcd2.setCursor(0,0);
lcd2.print("Hello, world 2!");
lcd2.setCursor(0,1);
lcd2.print("Quantr Limited 2");
}
void loop()
{
}