from the doc’s on the lcd function page
i thought the lcd line arrangement was like this
//sets the text cursor on LCD screen
// 0x00-0x3f: first line
/// 0x40-0x7f: second line
// 0x80-0xbf: third line
// 0xc0-0xff: fourth line
after experimenting a little i have no clue what is going on here
made a littel simple program to test where the display was displaying
the test program
void DIN_NotifyToggle(unsigned char pin, unsigned char pin_value) __wparam
{
if(pin_value == 1)
{
switch(pin)
{
case 0 :
val++;
displayTest(val);
break;
}
}
return;
}
void displayTest(unsigned int val)
{
MIOS_LCD_Clear();
MIOS_LCD_CursorSet(0x00);
MIOS_LCD_PrintCString(“verdi”);
MIOS_LCD_PrintBCD3(val);
MIOS_LCD_CursorSet(val);
MIOS_LCD_PrintCString(“test string to g”);
return ;
}
the result from the test
16 dec line 3
40 dec line 2
46 dec line 2
80 dec line 4
104 - 111 dec line 1
120 - 128 dec line 1
148 - 155 dec line 2
164 - 172 dec line 2
188 dec line 4
212 - 219 dec line 1
104 - 111 menas that “the test string to g” starts at column 1 on line x
dont know if my display is a little strange or what
but i think i can remember when i bought the display about 8 years ago
there was somthing about that something had to be fliped, switched, reversed or negated to get it to work as an standard HD44780
or it was just me that was drunk ?
am using MIOS 1,8 and sdcc_skeleton_v1_0d
and programming in C
hope sombody has some idea what is going on here