View Single Post
  #3   Spotlight this post!  
Unread 01-03-2009, 17:33
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: DS Digital Input/Output

A couple of suggestions:

1.Your printf is set to print an int, not a boolean. I don't think there's a flag for boolean, so you might want to change it to use two different printfs depending on the state of the variable

2.Check your switches with a multimeter and make sure current is actually getting through.

3.Check your digital outputs and see if you're actually turning it on. If you are, chances are that you have reversed the polarity to the LED(LEDs are diodes, so they only work one direction)
__________________
Get yer robot source code here!
Reply With Quote