Beste JO3RI,
Dit gaat helaas niet op , beide teksten scrollen ook met deze code ??
Ik heb al van alles geprobeerd, maar ben er nog niet uit :0
/*
Scroll
* this sketch scrolls text left when tilted
* text scrolls right when not tilted.
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// initialize the library with the numbers of the interface pins
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();
// set up the LCD's number of columns and rows:
lcd.setCursor(0, 1);
lcd.print(textString);
lcd.setCursor(0, 0);
lcd.print("Vaste Tekst");
}
void loop()
{
{
// here if tilted left so scroll text left
for (int position = 0; position < textLen; position++)
{
lcd.scrollDisplayLeft();
delay(150);
}
}
{
// here if previously tilted but now flat, so scroll text right
for (int position = 0; position < textLen; position++)
{
lcd.scrollDisplayRight();
delay(150);
}
}
}
Misschien iemnand nog een optie ??