Raspberry pico w

出自TSK WIKI
於 2024年1月4日 (四) 09:27 由 Unknown user​(留言) 所做的修訂 (→LED blink)
跳至導覽 跳至搜尋

參考資料

LED blink

<python> from machine import Pin import time

led = Pin("LED", Pin.OUT)

while True:

 led.on()   # LED亮
 time.sleep(1)  # 等待1秒
 led.off()
 time.sleep(1)  # LED滅

</python>