本站改版新增arduino频道
from machine import Pin
p0 = Pin(16, Pin.OUT) # create output pin on GPIO0
p0.off() # set pin to "off" (low) level
在交互窗口中输入上诉程序,即可点亮板载led
闪烁
from machine import Pin
import time
p0 = Pin(16, Pin.OUT) # create output pin on GPIO0
while(1):
p0.off() # set pin to "off" (low) level
time.sleep(1)
p0.on() # set pin to "off" (low) level
time.sleep(1)
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0096311569213867 seconds