本站改版新增arduino频道
LED小灯闪烁函数
from utime import sleep_ms from machine import Pin, Timer def blink(): led = Pin(12, Pin.OUT, value=0) for count in range(20): led.value(not led.value()) time.sleep_ms(200) if __name__ == "__main__": blink() time.sleep_ms(1000)
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0094411373138428 seconds