「Raspberry pico w」:修訂間差異

出自TSK WIKI
跳至導覽 跳至搜尋
已建立頁面,內容為 "==參考資料== * 首頁MicroPythonRaspberry Pi Pico筆記 https://atceiling.blogspot.com/2021/03/raspberry-pi-pico1micropythonled.html ==LED blink== <python from m…"
 
第2行: 第2行:
* 首頁MicroPythonRaspberry Pi Pico筆記 https://atceiling.blogspot.com/2021/03/raspberry-pi-pico1micropythonled.html
* 首頁MicroPythonRaspberry Pi Pico筆記 https://atceiling.blogspot.com/2021/03/raspberry-pi-pico1micropythonled.html
==LED blink==
==LED blink==
<python
<python>
from machine import Pin
from machine import Pin
import time
import time

於 2024年1月4日 (四) 09:27 的修訂

參考資料

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>