text: 
  from machine import Pin
  import time
  
  p = Pin(2, Pin.OUT)
  
  def blink(max):
      lap = 0
      while lap < max:
          p.value(1)
          time.sleep(1)
          p.value(0)
          time.sleep(1)
          lap += 1
  
  blink(9)