LCD i2c 20x4 inverted lines

Hi, maybe it's just a small problem of mine, but I can't find anything on the internet regarding the fact that the lines 2 and 3 of my i2c 20x4 lcd are literally reversed, can anyone help me?
I mean they're not mirrored, it's like something like this: on arduino I tell them to do this:

  lcd.print("    SETTINGS        ");
  lcd.print("  Change T          ");
  lcd.print("  Buzzer ON/OFF     ");
  lcd.print("  Override I.       ");

But the output is:

Buzzer ON/OFF
Change T
Override I.

As you can see, line 2 and 3 are inverted.

use setCursor(x,y) to write to the correct line/position, don't rely on printing past the end of the line to arrive to the right place. You don't know the internals of the LCD.

lcd.setCursor(0,0); lcd.print("    SETTINGS        ");
lcd.setCursor(0,1); lcd.print("  Change T          ");
lcd.setCursor(0,2); lcd.print("  Buzzer ON/OFF     ");
lcd.setCursor(0,3); lcd.print("  Override I.       ");

Ok now i try

Cool thanks. Works

great - have fun

position/line (lcd.setCursor(x, y))

picky tonight? :wink:

One in thousand!

The lines on a 20 x 4 LCD usually wrap 0 > 2 > 1 > 3 because of the buffer layout inside the controller chip.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.