def servo2(tf):
    gpio.setmode(gpio.BCM)
    gpio.setup(6, gpio.OUT)
    p2 = gpio.PWM(6, 50)
    p2.start(6)
    p2.ChangeDutyCycle(tf)
    time.sleep(0.7)
    gpio.cleanup()
def servo2(tf):
    gpio.setmode(gpio.BCM)
    gpio.setup(6, gpio.OUT)
    p2 = gpio.PWM(6, 50)
    p2.start(6)
    p2.ChangeDutyCycle(tf)
    time.sleep(0.7)
    gpio.cleanup()