|
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!
|