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 CCS Technical Support

Data Types question

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



Joined: 14 Oct 2005
Posts: 10

View user's profile Send private message

Data Types question
PostPosted: Mon Oct 17, 2005 12:31 pm     Reply with quote

Hi there all I'm having problems with data types and hoped someone here could set me straight. I've designed my own LCD driver that uses a shift register to allow for only 3 lines to be connected to the pic. I've provided below a sample of what I currently have that works and an example of what i'm trying to do that at this point does not work. Any help would be welcome. Thanks!

Code:

int8 type1;

type1 = 1;
++type1; // type1 should now equal 2

send_lcd("send this"); /// This line works fine
send_lcd(type1); // this outputs garbage on the screen, I need it to output the value of type1


PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 17, 2005 12:38 pm     Reply with quote

This thread has an example:
http://www.ccsinfo.com/forum/viewtopic.php?t=19610
timtalk



Joined: 14 Oct 2005
Posts: 10

View user's profile Send private message

PostPosted: Mon Oct 17, 2005 12:44 pm     Reply with quote

Thank you very much. I hunted before I posted and came up with several others but they all were indicating that I should direct the output into another varible instead of directing it directly into the sub routine. Now that i've done that it works great.. Thanks again.
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