def servo(tf):
    gpio.setmode(gpio.BCM)
    gpio.setup(5, gpio.OUT)
    p = gpio.PWM(5, 50)
    p.start(5.5)
    p.ChangeDutyCycle(tf)
    time.sleep(0.7)
    gpio.cleanup()
def servo(tf):
    gpio.setmode(gpio.BCM)
    gpio.setup(5, gpio.OUT)
    p = gpio.PWM(5, 50)
    p.start(5.5)
    p.ChangeDutyCycle(tf)
    time.sleep(0.7)
    gpio.cleanup()