#include <LiquidCrystal_I2C.h>
//I2C (Display und ToF sensor)
const int SDA1 = A4;
const int SCL1 = A5;
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
pinMode(SDA, OUTPUT);
pinMode(SCL, OUTPUT);
lcd.init();
Displaystart();
}
void Displaystart(){
lcd.clear();
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("hi");
}
void DisplayT(){
lcd.clear();
lcd.backlight();
// rechts neben dem Rand schreiben:
lcd.setCursor(16,0);
lcd.print("test");
// scrollen:
for (int positionCounter = 0; positionCounter < 16; positionCounter++) {
lcd.scrollDisplayLeft();
delay(300);
}
}
void loop() {
}