Search Posts

Arduino controls two 1602 LCD

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()
{
}

Leave a Reply

Your email address will not be published. Required fields are marked *