> For the complete documentation index, see [llms.txt](https://cavedu.gitbook.io/cavedu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cavedu.gitbook.io/cavedu/raspberry_pi_pico_info/pico_arduino_ide.md).

# Raspberry Pi Pico 使用Arduino IDE

## Arduino IDE下載 <a href="#toc124882497" id="toc124882497"></a>

<mark style="color:orange;background-color:yellow;">**洞洞么模組之程式，均為以Arduino IDE撰寫，請下載Raspberry Pi Pico 專屬 Arduino IDE，連結如下:**</mark>

{% embed url="<https://www.dropbox.com/sh/zuq5l832sx66ft3/AABOQT1-RZ0kF8QdrXMjj017a?dl=0>" %}

![](/files/e8QSa5YNL3iovyP9PVxe)

**下載至電腦後，請解壓縮程式，開啟執行檔。**

![](/files/bNcIe0fbNlo7s8YaNPhj)

**按下允許存取，即可開啟Arduino IDE。**

![](/files/kdQqL4F5ykoXVQdhHGHK)

**開啟Arduino IDE，即可使用Raspberry Pi Pico**

![](/files/lWCbf3HxkpncCFy8yz7W)

### Raspberry Pi Pico 上傳程式 <a href="#hlk124512920" id="hlk124512920"></a>

* **選擇開發板**

開啟Arduino IDE 後，需要確認燒錄目標為Raspberry Pi Pico開發板，故路徑為:

**工具->開發板->Raspberry Pi RP2040 Boards(2.6.3) -> Raspberry Pi Pico**

![](/files/qD9tSCJMeGskRpUkvGwy)

* **燒錄程式**

由於Raspberry Pi Pico 在第一次燒錄時，裝置管理員並沒有顯示COM Port(序列埠)編號，所以先直接燒錄即可。以Blink程式為例，程式路徑:

**檔案->範例->01.Basis->Blink**

![](/files/ZO4Yr8n3eobi9nw1M5Le)

* 按下**上傳**鍵。

![](/files/i6RqX63MXnJYUlaDvuOR)

此時顯示**設定**訊息

![](/files/D3AzEQIgegnVVHe4JKOz)

之後，燒錄程式時即可選Com port 編號，路徑為:

**工具->序列埠->COM XX(Raspberry Pi Pico)**

![](/files/M1exe0B2kZERtNA9Z4Fr)

## 洞洞么套件模組程式下載

<mark style="color:orange;background-color:yellow;">**至此，Raspberry Pi Pico已設定完成，之後就可使用洞洞么套件模組，洞洞么套件模組程式下載:**</mark>

{% embed url="<https://www.dropbox.com/sh/s7lbhpmbqwqv7xj/AAATZ7QtFES-Abbc4CEoLgora?dl=0>" %}

![](/files/c8GJMTR60UIIyv9GAvLu)
