Thread: rc_dig_in help?
View Single Post
  #3   Spotlight this post!  
Unread 18-01-2008, 09:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: rc_dig_in help?

How are you trying to define an input as zero? What circuitry are you connecting to the input pin?

When you read a digital input, the value you get depends on the voltage on the pin. Ground gives you a zero, and +5 volts gives you a one. The RC input pins have pullup resistors built in, so a pin with no connection is the same as a pin with +5 volts supplied to it.