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

Search found 2 matches
CCS Forum Index
Author Message
  Topic: For Statement
kianab1985

Replies: 8
Views: 7446

PostForum: General CCS C Discussion   Posted: Fri Jun 20, 2008 12:24 pm   Subject: For Statement
define i as

#define i int

i just want the program to loop
until there is an input at pin A2
  Topic: For Statement
kianab1985

Replies: 8
Views: 7446

PostForum: General CCS C Discussion   Posted: Fri Jun 20, 2008 12:14 pm   Subject: For Statement
while(true)
for (i=1 ;i>0 ;++i)
{
if (input(PIN_A2))
break;
else
{
output_high(PIN_C6);
delay_ms(200);
...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group