// Forum: https://forum.arduino.cc/t/lcd-i2c-doesn-t-display-words/1192923
// This Wokwi project: https://wokwi.com/projects/382269134026795009
//
// Is the Adafruit LiquidCrystal library compatible with the common
// LCD I2C displays ? No, it is not compatible.
#include <Adafruit_LiquidCrystal.h>
Adafruit_LiquidCrystal lcd(0x27);
void setup()
{
Serial.begin(115200);
if (!lcd.begin(16, 2)) {
Serial.println("Could not init backpack. Check wiring.");
while(1);
}
Serial.println("Backpack init'd.");
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop()
{
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
lcd.setBacklight(HIGH);
delay(500);
lcd.setBacklight(LOW);
delay(500);
}
No, the library is not compatible.
Is the Adafruit library compatible ?