/* Funktion: Test für lcd.clear und Cursor-Position */
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
#define MAX 14
uint8_t i = MAX;
bool eins = 1;
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
lcd.clear(); // VOR setCursor - OK
lcd.setCursor(i,eins);
//lcd.clear(); // NACH setCursor - resettet Cursorposition
lcd.print(i);
delay(200);
i--;
if (i > MAX) {
i = MAX;
eins = !eins;
}
}