from machine import Pin import time pin = Pin(19, Pin.OUT) for i in range(10): pin.value(1) time.sleep(0.5) pin.value(0) time.sleep(0.5) print(i)