Hallo Gemeinde
Ich verwende das Modul von Poll.. zur Anzeige eines 2 zeiligen Displays
mit dem I2C Bus. Es LCD-I2C Modul und das Display TC1602. Habe dazu in
der Datei i2clcd.h das folgende geändert.
1 | // #define LCD_I2C_DEVICE 0x70 /**< Change this to the address of your expander */
|
2 | #define LCD_I2C_DEVICE 0x40 /**< Change this to the address of your expander */
|
3 |
|
4 | // #define LCD_LINES 4 /**< Enter the number of lines of your display here */
|
5 | // #define LCD_ROWS 20 /**< Enter the number of rows of your display here */
|
6 |
|
7 | #define LCD_LINES 2 /**< Enter the number of lines of your display here */
|
8 | #define LCD_ROWS 16 /**< Enter the number of rows of your display here */
|
9 |
|
10 | #define LCD_LINE1 0x00 /**< This should be 0x00 on all displays */
|
11 | #define LCD_LINE2 0x40 /**< Change this to the address for line 2 on your display */
|
12 |
|
13 | //#define LCD_LINE2 0x40 /**< Change this to the address for line 2 on your display */
|
14 | //#define LCD_LINE3 0x14 /**< Change this to the address for line 3 on your display */
|
15 | //#define LCD_LINE4 0x54 /**< Change this to the address for line 4 on your display */
|
Möchte das Display gegen ein PC2004-C austauschen. Diese hat 4 Zeilen
mit jeweils 20 Zeichen. Haben in den oberen Beispielen die Zeilen
geändert. Es erscheint aber nicht der Text auf dem Display, sonder nur
die Punkte in der Zeile 1 und 3. Das Display könnte im 8 Bit Modus
stehen. Leider komme ich mit der Umschaltung nicht klar. Könnte mir
dabei jeman helfen.
Verwende das i2clcd.h von Peter Fleury bzw Eichelmann
Arbeite mit C, Atmega 32/128 16MHz
achim