import time
from machine import Pin
pin2 = Pin(4,Pin.OUT) 
pin4 = Pin(14,Pin.OUT)

i = 1
while i <= 10:
    print(i, end = ', ')
    i = i + 1
    pin2.on()
    print ("LED ON ")
    time.sleep(0.5)
    pin2.off()
    print ("LED OFF ")
    time.sleep(0.5)
    pin4.on()
    print ("LED ON ")
    time.sleep(0.5)
    pin4.off()
    print ("LED OFF ")
    time.sleep(0.5)
Loading
esp32-devkit-v1