vrijwel altijd zitten de 2 regels in een lineair/ sequentieel geheugen, en is de scroll geimplementeerd als schuiven in het geheugen. En dan schuift alles ..
probeer dit eens.
#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, 16, 2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Vaste Tekst");
}
void loop()
{
for (int position = 0; position < textLen; position++)
{
lcd.setCursor(0,1); // of moet dit zijn 1,0?
lcd.print(textString[position])
delay(150);
}
for (int position = textLen; position >0; position--)
{
lcd.setCursor(0,1);
lcd.print(textString[position])
delay(150);
}
}