import time
from machine import Pin
pin2 = Pin(2,Pin.OUT)
for i in range(10):
print( i+1 )
pin2.on()
print ("LED ON ")
time.sleep(1)
pin2.off()
print ("LED OFF ")
time.sleep(1)
Loading
esp32-devkit-v1
esp32-devkit-v1
import time
from machine import Pin
pin2 = Pin(2,Pin.OUT)
for i in range(10):
print( i+1 )
pin2.on()
print ("LED ON ")
time.sleep(1)
pin2.off()
print ("LED OFF ")
time.sleep(1)