LCD Display Advise [SOLVED]

I just bought this. The back of the lcd is like this

I tried this code but the display is just blank.

#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>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address

void setup()   /*----( SETUP: RUNS ONCE )----*/
{
  Serial.begin(9600);  // Used to type in characters

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

// ------- Quick 3 blinks of backlight  -------------
  for(int i = 0; i< 3; i++)
  {
    lcd.backlight();
    delay(250);
    lcd.noBacklight();
    delay(250);
  }
  lcd.backlight(); // finish with backlight on 
  lcd.setCursor(0,0); //Start at character 4 on line 0
  lcd.print("Hello, world!");
  delay(1000);
  lcd.setCursor(0,1);
  lcd.print("HI!YourDuino.com");
  delay(8000);  

// Wait and then tell user they can start the Serial Monitor and type in characters to
// Display. (Set Serial Monitor option to "No Line Ending")
  lcd.clear();
  lcd.setCursor(0,0); //Start at character 0 on line 0
  lcd.print("Use Serial Mon");
  lcd.setCursor(0,1);
  lcd.print("Type to display");  


}/*--(end setup )---*/


void loop()   /*----( LOOP: RUNS CONSTANTLY )----*/
{
  {
    // when characters arrive over the serial port...
    if (Serial.available()) {
      // wait a bit for the entire message to arrive
      delay(100);
      // clear the screen
      lcd.clear();
      // read all the available characters
      while (Serial.available() > 0) {
        // display each character to the LCD
        lcd.write(Serial.read());
      }
    }
  }

}

A beginner to the display part of the arduino, so please bear with me.

And the solution was . . . ?

Don

Oops sorry forgot to mention that the pins were miss-placed. I thought i had mentioned it earlier when i marked the thread as solved.

I am using the LiquidCrystal_I2C library and is there function to clear a line or an entire row before printing ? like lcd.clear().

There is no such thing as 'the' LiquidCrystal_I2C library. There are several with the same name, each specific to the device they are (supposed to be) distributed with.

At any rate the answer to your question is no.

If you really want to erase something you must reposition the cursor and write a bunch of spaces.

Otherwise you can simply overwrite the old text with new text.

Don

anishkgt ,
If you use the PrintEx library it can be used to wrap the LCD object class and extend the methods used by the LCD library.
You could then use the printf() method to output a string that is the exact same size as the LCD line so it will overwrite the entire line.

--- bill

Don,
There is a library called "LiquidCrystal_I2C" in the library manger.

Yea overwriting was what i've been doing. Thought there would something more sensible.

Thanks guys.