CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

lcd_gotoxy doesnt work

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bittersweet



Joined: 23 Apr 2008
Posts: 22

View user's profile Send private message

lcd_gotoxy doesnt work
PostPosted: Thu May 08, 2008 2:03 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 08, 2008 2:06 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group