LoginSignup
30
32

More than 5 years have passed since last update.

Arduino IDEでESP32 BLEライブラリを導入

Posted at

Mr. Neil Kolbanの”ESP32 BLE for Arduino”が2017/10/13に“Arduino core for the ESP32″にリンクされたという事をGitHubのissueで知ったので、最新版に更新しBLEのArduino IDEでの開発環境を導入してみた。
https://github.com/nkolban/esp32-snippets/issues/82

2017/10/16時点の手順

  1. まず、これまでライブラリマネジャーで”ESP32 BLE”で検索してインストールできたライブラリは“Arduino core for the ESP32″の最新版ではコンパイルが通らなかったので削除
  2. GitHubから最新の“Arduino core for the ESP32″をダウンロード
    https://github.com/espressif/arduino-esp32
  3. BLEライブラリはシンボリックリンクとなっており、ZIPでダウンロードしてもlibrary/BLEフォルダは空なので、GitHubのリンク先から改めてダウンロードし、解凍してlibrary/BLEフォルダにコピー
    https://github.com/nkolban/ESP32_BLE_Arduino/tree/98cd2290d036a4e27db061a76a512b526ef1cc14
  4. あとは、以下の手順で“Arduino core for the ESP32″を上記でダウンロードしたものに入替
    1. Arduino インストールフォルダの hardware フォルダに、espressif フォルダを作成 espressif フォルダの中に esp32 フォルダを作成
    2. 上記で準備した”Arduino core for the ESP32″の中身を esp32 フォルダ内にコピー
    3. espressif\esp32\tools にある get.exe を管理者権限で実行しコマンドプロンプトが消えるまでじっと待つ
    4. Arduino IDEを立ち上げて”ツール”->”ボード”で”ESP32 Dev Module”を選択
    5. [ファイル] -> [スケッチ例]に”ESP32 BLE Arduino”でexample Sketchが読み込める image.png
30
32
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
32