[Servo86]
Description
Keep the suspended servo rotating.
Syntax
servo.resume()
Parameters
servo: Variable of the servo type.
Returns
None.
Example
#include <Servo86.h>
Servo myservo;
void setup()
{
myservo.attach(9);
myservo.write(1500); // turn the servo to the initial position of 1500us
delay(100);
}
void loop()
{
myservo.setPosition(1800, 3000); // Set the target angle of the servo: 1800us, time: 3 seconds
myservo.run();
delay(1000);
myservo.pause(); // Servo pauses rotation
delay(1000); // pause for 1 second
myservo.resume(); // Servo resumes rotation
delay(3000);
}See also
- setPosition()
- run()
- pause()
Libraries Reference Home
The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.