LCD1602 on Arduino - 2nd row not displaying

Post Reply
robers97
Posts: 1
Joined: Sat Nov 22, 2014 1:58 am

LCD1602 on Arduino - 2nd row not displaying

Post by robers97 » Sat Nov 22, 2014 2:12 am

I have a LCD1602 soldered onto a 16 column 2 row display.
If I configure the LiquidCrystal_I2C

LiquidCrystal_I2C lcd(0x27,16,2); // DOESN'T DISPLAY ANY ROWS
LiquidCrystal_I2C lcd(0x27,16,1); // works fine, except I don't get any display on the 2nd row!!

Using...

// LiquidCrystal_I2C V2.0 - Mario H. atmega@xs4all.nl
// Mods for Chinese I2C converter board - Murray R. Van Luyn. vanluynm@iinet.net.au

Please help me understand what I can do to dig deeper. I checked the solder joints and don't see any issue.
Anyone else experience this? Adjusting the constrast shows the blocks, so the LCD itself looks ok. No compile errors on any programs I've tried.

Star
Posts: 42
Joined: Wed Jun 11, 2014 3:32 pm

Re: LCD1602 on Arduino - 2nd row not displaying

Post by Star » Tue Dec 02, 2014 2:00 pm

Hi,robers97!

Sincerely sorry for the delay.It is the code i write for displaying in two rows.Hope it is helpful to you!
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

void setup() {
lcd.init();
lcd.backlight();
// Print a message to the LCD.
lcd.print("www.geeetech.com");
}

void loop() {

lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print("liujinhua");
}

Best wishes to you!
-Star

Post Reply