An enter on I2C LCD

Hello guys :slight_smile:

So I got my I2C LCD working with help of this page:

And I used this code:

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

#define I2C_ADDR    0x3F // <<----- Add your address here.  Find it from I2C Scanner
#define BACKLIGHT_PIN     3
#define En_pin  2
#define Rw_pin  1
#define Rs_pin  0
#define D4_pin  4
#define D5_pin  5
#define D6_pin  6
#define D7_pin  7

int n = 1;

LiquidCrystal_I2C	lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);

void setup()
{
 lcd.begin (16,2); //  <<----- My LCD was 16x2

 
// Switch on the backlight
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
lcd.setBacklight(HIGH);
lcd.home (); // go home

 lcd.print("SainSmartI2C16x2");  
}

void loop()
{

}

But i was wondering how do I enter? I know with Serial to lcd if i typ a message long enough it will at an enter automatic but how do I make a enter with

lcd.print(".");

Kinda like

serial.print()

In serial monitor

Have a great day :smiley:

Not really sure what you are getting at, but the LCD has no CR or LF function. If you want to put the cursor on a different line or at the start of the line, you must give the command to set the cursor to that place.

And if you want to blank one line, or part of that line, you have to set the cursor and write blanks (spaces; 0x20) to that part.