I am using this code to get a spike to work.
Code:
public Robot() {
lightSwitch = new Relay(2);
//lightSwitch.setDirection(Relay.Direction.kForward);
lightSwitch.set(Relay.Value.kOn);
}
However am getting an orange/red light and no output. I have tried measuring the 5v off of the robo rio pins and am getting zero voltage. Going from fwd to gnd or rev to gnd, using a multi-meter. I am at loss at this point as why