Basically what we want is to press a button and make it go forward until it hits the limit switch, we want it to stay stationary at that point until a command is given to go in the reverse direction where it should also hit another limit switch and stop. Our previous code did not allow us to move in the opposite direction until both switches have been released.
The wires have been already soldered onto PWM pins and connected to the DIO. I really don't want to cut the connections and rewire it to 2 pin connectors to hook it up to the Jags.If anyone has a solution i would be so grateful!
