# ESP-IDF + Arduino IDE 2.x.x + PlatformIO

**URL:** https://forum.ficusonline.com/t/topic/477
**Category:** ESP
**Tags:** arduino, plaoformio, esp8266, esp32
**Created:** [2023 年 1 月 17 日午後 3:05 UTC](https://forum.ficusonline.com/t/topic/477 "2023-01-17T15:05:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2023 年 1 月 17 日午後 3:05 UTC](https://forum.ficusonline.com/t/topic/477/1 "2023-01-17T15:05:05Z")

</div>

**Arduino IDE** に **ESP32, ESP8266** を搭載した各種マイコンボードを登録する方法

[https://docs.arduino.cc/software/ide-v2](https://docs.arduino.cc/software/ide-v2)

## Welcome to ESP32 Arduino Core’s documentation

> **[Welcome to ESP32 Arduino Core’s documentation — Arduino-ESP32 2.0.14...](https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/index.html)**

> **[GitHub - espressif/arduino-esp32: Arduino core for the ESP32 family of SoCs](https://github.com/espressif/arduino-esp32)**
>
> Arduino core for the ESP32 family of SoCs

## Arduino IDE

以下 **Preferences** の **`Additional boards manager URLs`** に安定版または開発版のURLを入力

 ![Screenshot from 2023-01-17 23-49-32](https://forum.ficusonline.com/uploads/default/original/2X/0/08e939d2f55c61a627a60727a30c7aeca29f104c.png)

**安定版URL**

```auto
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

```

**開発版URL**

```auto
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

```

## Welcome to ESP8266 Arduino Core’s documentation

> **[Welcome to ESP8266 Arduino Core’s documentation! — ESP8266 Arduino Core ...](https://arduino-esp8266.readthedocs.io/en/latest/)**

> **[GitHub - esp8266/Arduino: ESP8266 core for Arduino](https://github.com/esp8266/Arduino)**
>
> ESP8266 core for Arduino

以下のURLをカンマを付けて **`Additional boards manager URLs`** に追加

```auto
https://arduino.esp8266.com/stable/package_esp8266com_index.json

```

---

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2023 年 1 月 20 日午前 2:58 UTC](https://forum.ficusonline.com/t/topic/477/2 "2023-01-20T02:58:29Z")

</div>

## PlatformIO

VSCodeでのPlatformIOの利用は、以下のパルスオキシメータのプロジェクトから開始しています。

> [@ヘルスチェックデバイス：脈拍数+酸素飽和度SpO2+体温測定(FreeRTOS+ESP32)](https://forum.ficusonline.com/t/topic/409/15):
>
> Arduino IDEからVS Code+PlatformIOへ移行 C(.ini)またはC++(.cpp)適用ルールの相違に注意 Arduinoライブラリを直接ダウンロードして platformio.ini で指定 PlatformIO ESP32 FreeRTOS 設定ファイル .platformio/packages/framework-…

**VSCode : PlatformIO機能拡張**

> **[PlatformIO IDE - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide&utm_source=platformio&utm_medium=piohome)**
>
> Extension for Visual Studio Code - Your Gateway to Embedded Software Development Excellence: CMSIS, ESP-IDF, FreeRTOS, libOpenCM3, mbed OS, SPL, STM32Cube, Zephyr RTOS, Arduino, ARM, AVR, Espressif (ESP8266/ESP32), FPGA, MCS-51 (8051), MSP430, Nordic...

**PlatformIOのインストール・使い方など**  
[PlatformIO IDE for VSCode — PlatformIO latest documentation](https://docs.platformio.org/en/latest/integration/ide/vscode.html)

### ESP32

[Espressif 32 — PlatformIO latest documentation](https://docs.platformio.org/en/latest/platforms/espressif32.html#espressif-32)  
[Installing — Arduino-ESP32 2.0.14 documentation](https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/installing.html#installing-using-platformio)

### ESP8266

[Espressif 8266 — PlatformIO latest documentation](https://docs.platformio.org/en/latest/platforms/espressif8266.html)  
[Installing — ESP8266 Arduino Core documentation](https://arduino-esp8266.readthedocs.io/en/latest/installing.html#using-platformio)

* * *

**注）** 以下のマイコンボードに書込を行うためのUSB-Serialチップデバイスの登録が必要です。

> [@Arduinoハードウェア](https://forum.ficusonline.com/t/topic/476/4):
>
> Linux(Ubuntu)でPlatformIOを使用する場合 マイコンボードのUSB-Serialチップデバイスの登録が必要です。 [99-platformio-udev.rules — PlatformIO latest documentation](https://docs.platformio.org/en/latest/core/installation/udev-rules.html) マイコンボードのUSB-Serialチップデバイスの VID(Vender ID) と PID(Product ID) は、VSCodeのPla…

* * *

### プロジェクトディレクトリの変更

Linuxではデフォルトのプロジェクトディレクトリは/home/user/documentsになっているため、これをpioコマンドで変更(vscodeでplatformio機能拡張を有効にしてターミナルで実行)。

> **[How to change default new project location](https://community.platformio.org/t/how-to-change-default-new-project-location/2828/19)**
>
> How to use variables? As example %UserProfile%\\OneDrive!PlatformIO\\Projects ? pio settings set projects\_dir %UserProfile%\\OneDrive\\Project\\!PlatformIO\\Projects This command corrects the user’s folder path on the current computer. And I want the...

```auto
$ pio settings set projects_dir "/home/use_name/projectsXXX"

```

* * *

### プロファイル

デスクトップアプリやモバイルアプリ、そして組込みファームで使用するべき機能拡張が異なるため、それぞれにプロファイルを作成して使用する機能拡張を絞り込みます。プラットフォームを作成後、プロジェクトに必要な機能拡張をインストールします。

 ![Screenshot from 2026-06-28 14-18-16](https://forum.ficusonline.com/uploads/default/original/2X/d/d6372e9d73475dfff84add1c3fcb659a53158095.png)

---

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2023 年 1 月 25 日午前 5:17 UTC](https://forum.ficusonline.com/t/topic/477/3 "2023-01-25T05:17:50Z")

</div>

## PlatformIO Library Management

[Library Management — PlatformIO latest documentation](https://docs.platformio.org/en/latest/librarymanager/index.html)

プロジェクトに必要なライブラリは、以下の **PIO Home** の **`Libraries`** から入手出来ます。  
入手したライブラリは、プロジェクトの **`platformio.ini`** ファイルに即座に反映されます。

 ![Screenshot from 2023-01-25 14-06-14](https://forum.ficusonline.com/uploads/default/original/2X/0/0783d263f5fbb5bbebcc188e0628e6b9e67a8105.png)

ビルドの際にエラーの原因となっているライブラリについては、手動で **`lib_ignore`** のセクションで指定すること。

[Library Dependency Finder (LDF) — PlatformIO latest documentation](https://docs.platformio.org/en/latest/librarymanager/ldf.html)

**`platformio.ini`**

```auto
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = 
	adafruit/Adafruit GFX Library@^1.10.10
	adafruit/Adafruit MQTT Library@^2.4.0
	bblanchon/ArduinoJson@^6.18.0
	adafruit/Adafruit MLX90614 Library@^2.1.3
	sparkfun/SparkFun MAX3010x Pulse and Proximity Sensor Library@^1.1.1
	adafruit/Adafruit BusIO@^1.7.5
	adafruit/Adafruit NeoPixel@^1.10.7
	adafruit/Adafruit SSD1306@^2.5.7
	mathertel/OneButton@^2.0.3
	khoih-prog/ESP_WifiManager@^1.12.1
lib_ignore = 
	WiFi101

```

---

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2024 年 4 月 30 日午後 1:58 UTC](https://forum.ficusonline.com/t/topic/477/4 "2024-04-30T13:58:30Z")

</div>

## PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode

VSCodeをUbuntu24.04に新規インストール・起動時のエラー。  
Python3の仮想環境構築パッケージがインストールされていないため、これをインストール。

> <https://github.com/platformio/platformio-core-installer/issues/1958>
>
> I've been using Platform:IO for well over a few years now, and suddenly one day …it just stopped working. It's not detecting any python path, and even when I manually input the python path it just continues to give me the same prompt. I've read about this issue elsewhere and so far nothing. Currently using Python 3.10 installed from the official website, but I also tried installing locally through the Microsoft store. No luck. I have no idea why this suddenly stopped working.

```auto
$ sudo apt-get install python3-venv

```
