from machine import Pin, PWM
import time
servo1 = PWM(Pin(12), freq=50, duty=77)
servo2 = PWM(Pin(14), freq=50, duty=23)
# Move servos in opposite directions
servo1.duty(0)
servo2.duty(77)
while True:
for i in range(0,1023):
servo1.duty(i)
servo2.duty(i)
time.sleep(0.1)
print(f'duty value: {i} degrees')