micropython -esp8266点亮板载led

cooolr 于 2022-04-07 发布
from machine import Pin

led = Pin(2,Pin.OUT)
# 亮灯
led.off()
# 灭灯
led.on()