I recenlty updated the library of the RoboBoardX4. before the update this worked perfectly:
X4.dcA.setInvert(true);
X4.dcA.power(40);
But after the update I cant seem to get it reversed even with the official example:
DC.spin(50); // Spin at 50% power
delay(2000);
DC.spin(-50); // Spin backwards at 50% power
delay(2000);
DC.setInvert(true); // Invert spin direction
delay(1000);
DC.setInvert(false); // Restore default spin direction
delay(1000);
DC.brake(); // Stop spin with brake
delay(1000);
It only goes forward. if its at the reverse code the motor just stops and continues when it goes forward again. I changed all the cables and tried different motors. None worked. What am I doing wrong?