from machine import Pin,PWM
from time import sleep

pwm=PWM(Pin(25),freq=50)


push=Pin(14,Pin.IN,Pin.PULL_UP)
var=0

while(1):
  if push.value()==0:
     var=var + 1
     if var > 2:
          var=0
     while(push.value()==0):
           sleep(0.001)
  if var==0:
         pwm.duty(25)
         sleep(0.5)
         pwm.duty(35)
         sleep(0.5)
 elif var==1:
         pwm.duty(70)
         sleep(0.5)
         pwm.duty(80)
         sleep(0.5)
else:
        pwm.duty(115)
        sleep(0.5)
        pwm.duty(125)
        sleep(0.5)