Autoscroll is backwards on 16x2 lcd display

Hey, I'm trying to dsiplay a text and then have it autoscroll, but it is scrolling backwards for some reason. Does anyone happen to know why?

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() 
{
      lcd.init(); 
      lcd.backlight();
      Serial.begin(9600);
      
      
}

void loop() 
{
  
      
      lcd.setCursor(0, 0);
      lcd.print("blabla");
      delay(500);
      lcd.autoscroll();
      
  
}

but how do you change the direction?

Look at the other functions I linked you to.

Oh I didn't see that. Thank you!

uncomment the one you want..

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()
{
  lcd.init();
  lcd.backlight();
  Serial.begin(9600);
  lcd.setCursor(0, 0);
  lcd.print("blabla");

  lcd.autoscroll();


}

void loop()
{
  lcd.scrollDisplayLeft();
  //lcd.scrollDisplayRight();
  delay(100);
}

have fun.. ~q

1 Like

Thank you!

1 Like

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