M5Stack Arduino IDE initial setting (macOS)
- 2018/09/08
- 11:23
M5Stack Arduino IDE initial setting (macOS)
Hello everyone! I’m RoboTakao!
I recently bought MStack Gray at Make Faire Tokyo 2018. I tried to work.

Start up by connecting USB to M5Stack. A sample program for factory shipment works.
First of all, it is the initial setting for use with Arduino IDE.
Steps
1) Installing the USB driver
2) Setting on terminal on Mac side
3) Arduino IDE settings
1)Installing the USB driver
First go to the Official site (http://m5stack.com) and click the "Get Start" tab

Click the link of SiLabs CP 2104 Driver

Look for the driver for macOS and click


As the disk image SiLabsUSBDriverDisk.dmg is downloaded, mount it.
Proceed according to the instructions OK








2)Setting on terminal on Mac side
Click Instructions for Mac and follow the instructions.

Open a terminal and type the following command

mkdir -p ~/Documents/Arduino/hardware/espressif && \
cd ~/Documents/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py
Although it did not happen in my environment, please do the following when the following error occurs.

xcode-select –install
3) Arduino IDE settings
First, if Arduino IDE is not installed, install it.
Start up Arduino IDE
Choose Sketch -> Include Library -> Manage Libraries...

Type m5stack into the search box.
Click the row to select the library.
Click the Install button to install the library.

Click "File-> Examples". Here are some test programs in "M5Stack->"

Try to open a sketch called HelloWorld inside Basics.

tools -> Boards -> M5Stack-Core-ESP32

tools -> Serialports -> /dev/cu.SLAB_USBtoUART

Although there was no problem in my environment,
Sometimes Slab_USBtoUART does not appear in some cases.
In this case, open security and privacy in the system preferences and set it to "permit".



Compile and write in the same way as Arduino.
HelloWorld is displayed on the screen.

Good Bye! Thank you!
スポンサードリンク