bittersweet
Joined: 23 Apr 2008 Posts: 22
|
lcd_gotoxy doesnt work |
Posted: Thu May 08, 2008 2:03 pm |
|
|
Hi,
I cant use LCD's second line because lcd_gotoxy(1,2) doesnt work, always first line is being used
Code: |
lcd_gotoxy(1,1);
printf(lcd_putc, "\f first line");
lcd_gotoxy(1,2);
printf(lcd_putc, "\f second line");
delay_ms(1000);
|
when I simulate this code, I see only "second line" at first line, why doesnt lcd_gotoxy work? |
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu May 08, 2008 2:06 pm |
|
|
The "\f" command clears the display, and it also sets the cursor position
to 1,1. If you don't want that to happen, then remove that command
from your printf statement. |
|