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

glcd_putc("Hello"); and data

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



Joined: 05 Jun 2006
Posts: 41
Location: Belgium

View user's profile Send private message Visit poster's website MSN Messenger

glcd_putc("Hello"); and data
PostPosted: Mon Jun 19, 2006 12:30 pm     Reply with quote

i use the glcd_putc(" xxx "); command to put text on my graphic display,
works fine by the way but.....
how can i print a value on the display?

for exampl...
x = 265

output must be like "voltage is : 256 volts"
thanks,
carl
epideath



Joined: 07 Jun 2006
Posts: 47

View user's profile Send private message

PostPosted: Mon Jun 19, 2006 1:51 pm     Reply with quote

check out the help under PRINTF() for different codes.

but basically printf(glcd_putc,"%u Volts", x);
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 19, 2006 1:51 pm     Reply with quote

Use the re-direction feature of the CCS printf() function.
See this thread for an example:
http://www.ccsinfo.com/forum/viewtopic.php?t=26398&highlight=printf+lcdputc
on7nh



Joined: 05 Jun 2006
Posts: 41
Location: Belgium

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Mon Jun 19, 2006 3:14 pm     Reply with quote

Thanks...works now !!!
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