1.ESP32–LED闪烁实验
"""
LED 闪烁实验
2022.10.9
"""
from machine import Pin
import time
LED=Pin(2,Pin.OUT)#GPIO2,设置为输出模式,输入模式为Pin.IN
while True:
LED.value(1)
time.sleep
1.ESP32–LED闪烁实验
"""
LED 闪烁实验
2022.10.9
"""
from machine import Pin
import time
LED=Pin(2,Pin.OUT)#GPIO2,设置为输出模式,输入模式为Pin.IN
while True:
LED.value(1)
time.sleep