Hi m.a.r.v.i.n,
danke für die Anpassung der Datei.
Ich habe die Lib ausgetauscht, das oben von mir angegebene Programm neu kompiliert und geflasht. Bei mir zeigt das Display in der 3. Zeile nichts an, Zeile 1 und 2 werden richtig positioniert - ist das bei dir auch so?
EDIT: Ich habe einen Weg gefunden, wie die 3. Zeile auch verwendet wird mit
Code:
$regfile = "m16def.dat"
$crystal = 15000000
$baud = 9600
$lib "Lcd_i2c.lib" 'I2c driver for the LCD
Config I2cdelay = 1
Const Pcf8574_lcd = &H4E 'Defines the address of the I/O expander for LCD
Config Scl = Portc.0 'Configure I2C SCL
Config Sda = Portc.1 'Configure I2C SDA
Dim _lcd_e As Byte 'Needed to control 4 line LCD
Enable Interrupts
Config Lcd = 16 * 3 'configure lcd screen
I2cstart
_lcd_e = 128 'Upper half of 4-line display is selected
Cls 'clear the LCD display
Lcd "ABCDEFGHIJKLMNOP" 'display this at the top line
Waitms 1
Lowerline 'select the lower line
Lcd "QRSTUVWXYZ1234567890abcdefghijk"
Waitms 1 'display this at the lower line
_lcd_e = 64 'Lower half of 4-line display is selected
Lcd "nix"
Waitms 1
Lowerline
Lcd "nix"
Probier es mal aus.
Lesezeichen