#if LCD_TYP == 1
// *************************************************************
// ************ Lcd DDRAM register for 2x40 display ************
// *************************************************************
#define MAXLINELENGHT 40
prog_char screenpos[2] = { 0x80, 0xC0 };
#endif
#if LCD_TYP == 2
// *************************************************************
// ************ Lcd DDRAM register for 2x24 display ************
// *************************************************************
#define MAXLINELENGHT 24
prog_char screenpos[2] = { 0x80, 0xC0 };
#endif
#if LCD_TYP == 3
// *************************************************************
// ************ Lcd DDRAM register for 4x20 display ************
// *************************************************************
#define MAXLINELENGHT 20
prog_char screenpos[4] = { 0x80, 0xC0, 0x94, 0xD4 };
#endif
#if LCD_TYP == 4
// *************************************************************
// ************ Lcd DDRAM register for 4x16 display ************
// *************************************************************
#define MAXLINELENGHT 16
prog_char screenpos[4] = { 0x80, 0xC0, 0x90, 0xD0 };
#endif
das sind jeweils die startadressen der einzelnen zeilen. dahin solltest
du schreiben.