ESP-WROOM-02 の Arduino 環境で I2C 制御を試してみた。
ツール
書き込み成功時
Trouble Shoot
トラブル1
マイコンボードに書き込むとき、以下のエラーがでた。
error: no matching function for call to 'TwoWire::begin(int, int)'
原因
BoardManaegerにESP8266がインストールされていなかった。
解決
Boards ManagerにESP8266をインストールする
インストール方法:
参考資料:https://www.mgo-tec.com/blog-entry-50.html
パッケージ:
https://github.com/esp8266/Arduino
トラブル2
マイコンボードに書き込むとき、以下のエラーがでた。
warning: espcomm_sync failed
error: espcomm_open failed
ヒント
解決
ESP8266を書き込みモードにする
注意点として、一回書き込むとプロテクトされるので、都度リセットする必要がある