++OPGELOST ++ Scroll text met PCF8574A I2C

2e poging

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

const int numRows = 2;
const int numCols = 16;

const char textString[] = "                  * ArduinoPat *        ";
const int textLen = sizeof(textString) -1; // the number of characters

LiquidCrystal_I2C lcd(0x27, numCols, numRows );

void setup()
{
  lcd.init();
  lcd.backlight();

  // vaste text
  lcd.setCursor(0,1);
  lcd.print("vaste text");
}

void loop()
{
  // scroll text
  for (int position = 0; position  < textLen; position++)
  {
    lcd.setCursor(0, 0); 
    lcd.print(&textString[position])       // was het & (adress) vergeten
    delay(100);
  }
  for (int position = textLen; position  >0; position--)
  {
    lcd.setCursor(0,0);
    lcd.print(&textString[position]);
    delay(100);
  }
}

probeer eens