Forum

Einloggen | Registrieren | RSS  

Arduino und LCD2004 mit I2C (Bauelemente)

verfasst von volvodidi(R), Bonn / Medevi, 24.12.2025, 13:29 Uhr

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 // needed for the I2C interface
#include // download library from https://werner.rothschopf.net/202009_arduino_liquid_crystal_intro.htm
#include // include the proper IO interface

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:

Arduino und LCD2004 mit I2C - Willi-SH(R), 23.12.2025, 17:15
Arduino und LCD2004 mit I2C - xy(R), 23.12.2025, 17:49
Arduino und LCD2004 mit I2C - bastelix(R), 24.12.2025, 02:13
Arduino und LCD2004 mit I2C - Willi-SH(R), 24.12.2025, 11:59
Arduino und LCD2004 mit I2C - grindstone(R), 24.12.2025, 12:33
Arduino und LCD2004 mit I2C - Pitsch, 25.12.2025, 07:27
Arduino und LCD2004 mit I2C - grindstone(R), 25.12.2025, 16:26
Arduino und LCD2004 mit I2C - Willi-SH(R), 26.12.2025, 12:19
Arduino und LCD2004 mit I2C - volvodidi(R), 24.12.2025, 13:29
Arduino und LCD2004 mit I2C - Willi-SH(R), 24.12.2025, 11:54
Arduino und LCD2004 mit I2C - xy(R), 24.12.2025, 12:08
Arduino und LCD2004 mit I2C - Willi-SH(R), 26.12.2025, 12:08
Arduino und LCD2004 mit I2C - GerK(R), 26.12.2025, 13:52
Arduino und LCD2004 mit I2C - xy(R), 26.12.2025, 14:01