ubermick: I have also been having a hard time trying to get my "LCM1602 IIC" working.
I was able to get mine working in the end after a lot of hunting around.
I am still a total newbie to the Arduino.
Below is the code and the link to the library I used:
// Include Standard Wire Library
#include <Wire.h>
// Include I2C LCD Library (https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/LiquidCrystal_V1.2.1.zip)
#include <LiquidCrystal_I2C.h>
// Set the pins on the I2C chip used for LCD connections:
// addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
LiquidCrystal_I2C lcd(0x20, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address 0x20
void setup()
{
lcd.begin(16,2); // initialize the lcd
}
void loop()
{
lcd.setCursor(2,0); //Start at character 3 on line 0
lcd.print("Hello World");
lcd.setCursor(2,1); //Start at character 3 on line 1
lcd.print("16 by 2 Line");
}
I hope this is of some help to you.
Best Regards.