Forum
Arduino und LCD2004 mit I2C (Bauelemente)
Hej Willy,
dann nimmst du diesen Sketch.
Die passende Lib lädst du hier: https://werner.rothschopf.net/microcontroller/images/lcd/NoiascaLiquidCrystal.zip
Die Lib im zip Format kannst direkt in der IDE einbinden.
Dann kommt nachher auch nicht die Frage wie du Umlaute mit einbinden kannst
.
#include
#include
#include
const byte cols = 20; // columns/characters per row
const byte rows = 4; // how many rows
const byte addr = 0x27; // set the LCD address to 0x3F or 0x27
LiquidCrystal_PCF8574 lcd(Wire, addr, cols, rows); // create lcd object - with support of special characters
void setup()
{
Wire.begin(); // start I2C library
lcd.begin(); // initialize the LCD
lcd.backlight(); // turn on backlight
lcd.setCursor(1, 0);
lcd.print("Hello, world!");
lcd.setCursor(0, 1);
lcd.print("????°÷???äöüßÄÖÜ"); // show some special character entered in UTF-8
if (rows > 2)
{
lcd.setCursor(0, 2);
lcd.print("Noiasca LC I2C 2022");
lcd.setCursor(2, 3);
lcd.print("Powered by noiasca");
}
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("Dies ist ein 1. Text");
lcd.setCursor(0,1);
lcd.print("Dies ist ein 2. Text");
lcd.setCursor(0,2);
lcd.print("Dies ist ein 3. Text");
lcd.setCursor(0,3);
lcd.print("Dies ist ein 4. Text");
}
Gruß
Dieter aus S
Gesamter Thread:
