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

simple question

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



Joined: 04 May 2006
Posts: 16

View user's profile Send private message

simple question
PostPosted: Thu May 18, 2006 10:39 am     Reply with quote

how can I see int16 number (for example 1034)on screen?How can I use printf() function for this my simple problem?Can you help me?
Thanks a lot everyone...
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Thu May 18, 2006 10:52 am     Reply with quote

On what kind of screen? An LCD? your PC Monitor?
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

Re: simple question
PostPosted: Thu May 18, 2006 12:09 pm     Reply with quote

LEVENT wrote:
how can I see int16 number (for example 1034)on screen?How can I use printf() function for this my simple problem?Can you help me?
Thanks a lot everyone...


RS232, printf("\r\nMy number is %ld", (int16)myvar); should get you headed in the right direction.

LCD, review the examples that come with CCS and consider sprintf for loading up the string for display. Also I believe there is a non-standard arg list you can use for printf that will work.

In short, most of this is RTFM material but without clarification on your part we can't direct you the the exact example program or page #...
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
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