View Single Post
  #3   Spotlight this post!  
Unread 18-02-2008, 12:44
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,791
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Where? Quick explanation please...

Quote:
Originally Posted by mikaljr View Post
Also can anyone tell me the difference between these variables...

rc_dig_out
rc_dig_in
digital_io

Thanks to anyone who can give me any help! :
the digital_io variables need to be set to either INTPUT or OUTPUT, depending on how you're using them. for example, if you have a switch hooked up to one, it would be an INPUT. if you have an LED hooked up to one, then that would be an OUTPUT.

You then use the rc_dig_in or rc_dig_out to read/set your digital_io ports. only use the rc_dig_in for ports you set as an input, and rc_dig_out for ports you set as an output.