Hallo Leute,
ich verzweifle gerade an der besagten Library. Ich schaffe es nicht,
dass das Display eine Zeile nach der anderen vollschreibt. LCD läuft im
4bit Modus an einem Atmega32 mit 4Mhz Quarzoszillator.
Zum Beispiel:
1 | lcd_puts("1234567891234567891234567891234abcdefghijklmnopqrstuvwxyz........");
|
Liefert am Display:
12345678912345678912
jklmnopqrstuvwxyz...
34567891234abcdefghi
.....
Die interessanten Zeilen in der Library sehen so aus:
1 | #define LCD_LINES 4 /**< number of visible lines of the display */
|
2 | #define LCD_DISP_LENGTH 20 /**< visibles characters per line of the display */
|
3 | #define LCD_LINE_LENGTH 0x40 /**< internal line length of the display */
|
4 | #define LCD_START_LINE1 0x00 /**< DDRAM address of first char of line 1 */
|
5 | #define LCD_START_LINE2 0x14 /**< DDRAM address of first char of line 2 */
|
6 | #define LCD_START_LINE3 0x40 /**< DDRAM address of first char of line 3 */
|
7 | #define LCD_START_LINE4 0x54 /**< DDRAM address of first char of line 4 */
|
8 | #define LCD_WRAP_LINES 1 /**< 0: no wrap, 1: wrap at end of visibile line
|
Ich habe schon alle möglichen Kombinationen mit verschiedenen Adressen
versucht. Bekomme das einfach nicht hin. Weiters ist mir nicht klar was
"internal line lenght" meinen soll.
Bitte um Hilfe! Danke im Voraus!
Mfg Ed