qoopen0815 / M5Stack_ws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M5Stack_ws

How to setup develop environment

Install

sudo apt-get install arduino
sudo apt-get install python-pip
pip install platformio

PATH

pass the platformio's path

export PATH=${PATH}:/home/pi/.local/bin

PATH が通ったか確認し、次回ログイン時は勝手に PATH が通るようにします。

which platformio
echo 'export PATH=${PATH}:/home/pi/.local/bin' >> ~/.bashrc

※which コマンドの結果、見つからなかった場合は platformio が上記とは別の場所にインストールされています。 次のコマンドで見つけ出しましょう。

sudo find / -type f -name 'platformio'

How to apply platformio

Move to target arduino project directory. And, initialize platformio.

cd hoge_project
platformio init --board=m5stack-core-esp32
echo 'upload_port = /dev/ttyACM0' >> platformio.ini
cat platformio.ini

finish

About


Languages

Language:C++ 100.0%