016
10.12.2024, 17:17 Uhr
wpwsaw
Default Group and Edit
|
...hier mal ein kleines funktionierendes Beispiel
Quellcode: | #include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 4 rows
void setup() { lcd.init(); // initialize the lcd lcd.backlight(); }
void loop() { lcd.clear(); // clear display lcd.setCursor(0, 0); // move cursor to (0, 0) lcd.print("Arduino"); // print message at (0, 0) lcd.setCursor(2, 1); // move cursor to (2, 1) lcd.print("Laufschrift"); // print message at (2, 1) delay(2000); // display the above for two seconds
lcd.clear(); // clear display lcd.setCursor(3, 0); // move cursor to (3, 0) lcd.print("mit"); // print message at (3, 0) lcd.setCursor(0, 1); // move cursor to (0, 1) lcd.print("Mega2560"); // print message at (0, 1) delay(2000); // display the above for two seconds
lcd.clear(); // rechts neben dem Rand schreiben: lcd.setCursor(16,0); lcd.print("wpw");
// scrollen: for (int positionCounter = 0; positionCounter < 16; positionCounter++) { lcd.scrollDisplayLeft(); delay(300); }
}
|
gruß wpw -- RECORD, CRN1; CRN2; PicoDat; LC80; Poly880; KC85/2,3,4,5 ; KC87; Z1013; BIC; PC1715; K8915; K8924; A7100; A7150; EC1834; und P8000 ab jetzt ohne Tatra813-8x8 aber mit W50LA/Z/A; P3; ES175/2 und Multicar M25 3SK; Barkas B1000 HP |