Arduino One - Funduino LCM1602 with I2C

Dear all.

I've just got the RFID kit of Sunfounder and have a 2x16 LCD display with the I2C interface. I'm trying to run the basic "Hello world" test and I only get the first character when used the lcd.print("Hello World")...

I have tried printing numbers (works good) but the print for strings always prints only the first character of the set. I don't know what else to do.

So far I have only installed the LiquidCrystal_I2C library (no other external). Here's the basic code:

//DFRobot.com
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{

lcd.init(); // initialize the lcd

// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");

}

void loop()
{
}

SOLVED: The problem is the library used. This Library fixes the problem:

It's deja vu all over again.

This has problem has been cropping up quite a bit since the latest release of the Arduino IDE.

The problem is indeed in the library and the fix has been posted in this forum within the past few weeks.

Don

JMRVEN please which IDE are u using? I have same problem but library posted upper didnt work.

This is an old thread but out of completeness, I'll offer a short response:

The fixed LiquidCrystal_I2C library is available through the library manager.
However the issue you may have is that if your particular backpack does not use the same pin mappings as the hard coded pin mappings in the LiquidCrystal_I2C library, it won't work at all.


As an alternative, you could use my hd44780 library package.
It includes an i/o class, hd44780_I2Cexp, that can auto-detect everything, including the i2c address, pin mappings, and backlight active level.
It is available in the IDE library manager and you can read more about it here:

The i/o class for PCF8574 based backpacks is hd44780_I2Cexp and I would recommend that the included diagnostic sketch (I2CexpDiag) be run first to test the library and the lcd h/w.

--- bill