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 do you use the switch statement

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



Joined: 30 Dec 2008
Posts: 3

View user's profile Send private message

How do you use the switch statement
PostPosted: Fri Jan 02, 2009 4:16 pm     Reply with quote

I am using a 12F509 and want to switch between two led patterns using a push button to switch between each pattern. I have seen the code for the switch statement but do not know how to use it.

Could someone please help me.

Thank You
Allen
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 02, 2009 4:31 pm     Reply with quote

Please don't do multiple posts on the same topic. Here is your previous
thread, which did get one answer. You should have added your new
question to that thread.
http://www.ccsinfo.com/forum/viewtopic.php?t=37215

But anyway, for links to pushbutton code see this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=36222
That link also shows how to use the switch-case statement.

Here is a tutorial on C, which explains the switch statement.
http://cslibrary.stanford.edu/101/EssentialC.pdf
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