Moving Quickly
Last updated
Was this helpful?
Last updated
Was this helpful?
Depending on the use of the servo, you may also wish to have the servo simply rotate to its max position when you press one button and rotate to its minimum position when you press another button. That can be accomplished with some code like this:
*Note: skipping directly to this sort of control while you have your servo attached to your robot is a bad idea. You could end up burning out your motor if your servo tries to rotate in a way that it is not physically able to rotate!