SainSmart IIC/I2C/TWI Serial 2004 20x4 LCD Module Shield

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

//Addr: 0x3F, 20 chars & 4 lines
LiquidCrystal_I2C lcd(0x27,20,4);

void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello");
}
void loop()
{

}

I used this code above for my arduino mega and connected the wires correctly to the right pins and all I am getting is a blink on the screen and then its blank with the back light on. I was wondering if anyone can help me with this

never mind I figured it out. with the shield on the back you are able to change the contrast of the display. that is why the screen was blank. If you are having the same problem let me know I can help you with this device

I used this for the library and work perfectly fine

#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...
}

Follow the rules.

Go and read the instructions, then go back and modify your post to mark up the code as such so we can examine it comfortably and reliably.