I have multiple projects that involve a 20x4 LCD with a I2C backpack and a mega 2560 (clone). For some reason now when I load a project that previously worked, any project, when I lcd.print("anything"); I only get the first letter of the print. I have changed LCDs and backpacks three times and no effect. I used an example program "hello world" that comes with the I2C library and I still only get the first letter "H" to print. What am I missing. Hardware/software, damage to either. Where should I start looking? I am using Arduino 1.6.13
Here is the code that I am using to troubleshoot.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 20 chars and 4 line display
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup()
{
// initialize the LCD
lcd.begin();
// Turn on the blacklight and print a message.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
// Do nothing here...
}
Help please. I feel like i am staring right at it. The rubber duck is not helping either.
a machine tech