from gpiozero import Servo
from gpiozero.tools import sin_values

servo = Servo(17)

servo.source = sin_values()
servo.source_delay = 0.1

from gpiozero import Servo
from gpiozero.tools import sin_values
from signal import pause

servo = Servo(17)

servo.source = sin_values()
servo.source_delay = 0.1

pause()

Fix servo sweep example in docs
Fix servo sweep example in docs