I tried to compile your code for Uno and 'cos I'm using library behind my link below, it will cause an error 'class LiquidCrystal_I2C' has no member named 'init' so line lcd.init() is an issue..
With this library you'll use lcd.begin(); instead and it's working.. Dunno why your code doesn't work isn't but changing the library is one solution.. In this library, Hello World.ino would look like this:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
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...
}
Until now, the same problem appears on my project.
I had the same code as Emil and it was working in the automated default arduino installation of linux ubuntu.
(with sudo apt-get install arduino arduino-core) -> Arduino IDE V 1.0.x
I moved to the last version of arduino 1.6.6 beta to have the library manager which was not implemented in that previous version.
There is no troubleshooting during compilation and targetting but the function "print" with the original LiquidCrystal_I2C.h display only one character.
The library was updated according to TommiP requisitis and the problem is still alive in my configuration.
(old lib is removed and new lib is in the '/arduino/libraries' directory)
I tried as well with this :
LiquidCrystal_I2C lcd(0x27,16,2,16); // set the LCD address to 0x27 for a 16 chars and 2 line display
instead of
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
Paul - you forgot to look at the date on the posts mention to djcleckie_2 that the original poster had probably gotten things working in the intervening years.
Don
Possibly because you didn't initially pay attention to the date on the posts.
Not that I cared though - if he was just adding something "for completeness", then so was I.
Now you were involved in the OP and you have popped up to respond to this rather than any other. Suggests to me that you have notifications set. (I don't bother. )