from machine import Pin from time import sleep LED = Pin(16, Pin.OUT) for i in range(0,10): LED.toggle() sleep(0.1) LED.value(0)