I'm sure the answer is right under my nose, but I've been scouring the forum for hours for a simple answer to no avail. I'm a total noob so bare with my kindergarten questions. I've read tons about modifying the servo, about PWM, ms delaysm etc.. But I'm missing something. I screwed around with the servo function all night and couldn't figure out how to reverse direction.
I'm using an Axon with the axon code base. I am testing a servo with a Sharp IR on it. I simply want to turn the servo roughly 90 degrees to the left (no problem), then roughly 180 degrees in the opposite direction. I have no current desire to modify this specific servo, since it will never need to move more than 90 degrees right/left of center.
Using servo(PORTH, 2, 20) works fine moving it to the left. But how do I make it reverse direction? Can't figure it out for the life of me. Any links or specific code would be awesome. Thanks.