from machine import Pin
from time import sleep

ledPin=[Pin(2,Pin.OUT),Pin(4,Pin.OUT),Pin(15,Pin.OUT)]
sw=[Pin(12,Pin.IN,Pin.PULL_DOWN),Pin(13,Pin.IN),Pin(14,Pin.IN)]
n=0
print(n)
while True:
  if sw[0].value()==1:
    for i in range(n):  
      ledPin[0].value(1)
      ledPin[1].value(1)
      ledPin[2].value(1)
      sleep(1)
      ledPin[0].value(0)
      ledPin[1].value(0)
      ledPin[2].value(0)
      sleep(1)
  if sw[1].value()==1:
    n=n+1
    sleep(0.5)
    print(n)
  if sw[2].value()==1:
    n=0
  
$abcdeabcde151015202530354045505560fghijfghij