View Single Post
  #4   Spotlight this post!  
Unread 23-03-2004, 21:27
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: digital input question...

the digital inputs on the RC are already defined in the code for you - they can only have a value of 1 or 0

all you need to do is look at the right variable

rc_dig_in01 is digital input one on the RC

so you can do stuff like

if (rc_dig_in01 ==1) variableXYZ=123;

if (rc_dig_in14 ==0) variableQRS=127;

what else do you want to do with them?