artificialpicasso.ServoTestTemplate.rotate#

artificialpicasso.ServoTestTemplate.rotate(s, angle, ms, increment=1)[source]#

Rotates the given servo to the desired angle in the desired amount of time.

Parameters:
  • s (Servo) – The servo to rotate

  • angle (float) – The angle in degrees to rotate. 0 <= angle <= 180

  • ms (float) – Time in milliseconds to rotate the arm in.

  • increment (float, default: 1) – Moves the arm in increments of this size in degrees. Defaults to 1 degree.

Return type:

None