Raspberry pico w

出自TSK WIKI
於 2024年1月4日 (四) 09:27 由 Unknown user​(留言) 所做的修訂 (已建立頁面,內容為 "==參考資料== * 首頁MicroPythonRaspberry Pi Pico筆記 https://atceiling.blogspot.com/2021/03/raspberry-pi-pico1micropythonled.html ==LED blink== <python from m…")
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

參考資料

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>