class Servo – 3-wire hobby servo driver¶
Servo controls standard hobby servos with 3-wires (ground, power, signal).
Methods¶
-
servo.angle([angle, time=0])¶ Get or set the angle of the servo.
angleis the angle to move to in degrees.timeis the number of milliseconds to take to get to the specified angle.
-
servo.calibration([pulse_min, pulse_max, pulse_centre[, pulse_angle_90, pulse_speed_100]])¶ Get or set the calibration of the servo timing.
-
servo.pulse_width([value])¶ Get or set the pulse width in milliseconds.
-
servo.speed([speed, time=0])¶ Get or set the speed of a continuous rotation servo.
speedis the speed to move to change to, between -100 and 100.timeis the number of milliseconds to take to get to the specified speed.