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 clear

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







LCD clear
PostPosted: Sun May 18, 2008 5:27 am     Reply with quote

How to clear the LCD after some event is over?
I have this data and 2 line lcd.
Data is passed all the time.

1234567 1234567 1234567

Can i make 1234567 -pause-clear- 1234567 -pause-clear ?

If i do so then he is making clear after each number and not after space.
printf(LCD_PUTC,"%c",show[array]);
printf(lcd_putc,"\f");
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 18, 2008 10:24 am     Reply with quote

Quote:
How to clear the LCD after some event is over?

Send a "clear screen" command to the LCD. Example:
Code:
lcd_putc('\f');



Quote:

If i do so then he is making clear after each number and not after space.
printf(LCD_PUTC,"%c",show[array]);

Use the %s format to display a string that is in an array. Example:
Code:

int8 data[]={"Hello World"};

printf(lcd_putc, "%s", data);
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