from machine import Pin,PWM
from time import sleep

servo = PWM(Pin(13), freq = 50)
pushinc = Pin(12,Pin.IN,Pin.PULL_UP)
pushdec = Pin(14,Pin.IN,Pin.PULL_UP)

i=25

while(1):

      servo.duty(i)

      if (pushinc.value() == 0 and i<=105):

        servo.duty(i)
        sleep(0.1)
        i=i+10
        

      if (pushdec.value() == 0 and i>=45):

        servo.duty(i)
        sleep(0.1)
        i=i-10