I2C TWI 2004 20x4 LCD Module Display

I had just got my my LCD Display, I have looked everywhere online and can’t find anything to help, I can’t get the LCD to display anything and when i get it show something it just random letters and number, I have scanned it and got the address 0x3F. If anyone has this same problem or knows how to help it be appreciate.

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

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

void setup()
    lcd.setCursor(0, 0);
void loop()


I2C Scanner
I2C device found at address 0x3F !

I2C device found at address 0x3F !

Hi, You need to define the I2C version. See THIS PAGE for details…

Should look something like this (But x3F address):

/*-----( Import needed libraries )-----*/
#include <Wire.h>  // Comes with Arduino IDE
// Get the LCD I2C Library here: 
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
// Move any other LCD libraries to another folder or delete them
// See Library "Docs" folder for possible commands etc.
#include <LiquidCrystal_I2C.h>

/*-----( Declare Constants )-----*/
/*-----( Declare objects )-----*/
// set the LCD address to 0x27 for a 16 chars 2 line display
// A FEW use address 0x3F
// Set the pins on the I2C chip used for LCD connections:
//                    addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address

Then in setup you need:

 lcd.begin(20,4);         // initialize the lcd for 20 chars 4 lines, turn on backlight

I'm sorry but it took me to blank page.

took me to blank page.

Sorry! Fixed...

Thanks for the help, I read though the page, got everything done it was saying but still nothing displayed but random number and some time its blank, how ever it did start to blink the display on and off a couple times never had it do that before.

Can you take a photo of the small board on the back of the display?? Maybe I can see something..