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

How can I send a variable data to an LCD?

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



Joined: 25 Apr 2007
Posts: 14

View user's profile Send private message

How can I send a variable data to an LCD?
PostPosted: Mon Sep 29, 2008 6:20 pm     Reply with quote

Confused I´ve successfully tested "Flex_LCD" code with an 16F767 device and a 16x2 LCD display. Now my problem is that other than text, I need to show data coming from variables, let´s say the value collected at an analog input or the number of events accumulated by a counter...
Any suggestions to do this?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 29, 2008 6:58 pm     Reply with quote

Look in the CCS manual at the section on printf. Look at the format
strings that are used to display each variable data type. Here is a
code example of how to display a floating point variable on the LCD:
http://www.ccsinfo.com/forum/viewtopic.php?t=32168
ricperez



Joined: 25 Apr 2007
Posts: 14

View user's profile Send private message

It worked great!
PostPosted: Sat Oct 04, 2008 10:15 pm     Reply with quote

Very Happy Thanks for your input PCM Programmer. I´ve followed the example you suggested and it is now working.
Keep up with the good work.
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