1
Fork 0

tijd geven aan de servo om te draiien

This commit is contained in:
Ventilaar 2021-01-19 18:34:22 +01:00
parent 25e0f26e3c
commit f23f75520b
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ def set_servo(degrees):
p = GPIO.PWM(servo_pin, 50)
p.start(integer)
time.sleep(0.05)
p.stop()
return True