Arduino Development Environment Setup

In this tutorial, we will explain how to install the Arduino IDE 2.X or Arduino IDE 1.X.X and the Arduino CLI on your device.

Arduino IDE 2.X

Click here to visit Arduino official website , select the installation package corresponding to your own operating system to download.

M5Stack's board management

1. Open the Arduino IDE, select File->Preferences->Settings

2. Copy the M5Stack board management URL below to the Additional Development Board Management URLs:

https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json

3. Select Board Manager in the sidebar, search for M5Stack(M5Stack as an example), and click Install

4. Click Serial Port->Device Serial Port->Select the corresponding serial port of the device->OK at the top of the Arduino IDE.

Arduino 1.x.x

Click here to visit Arduino official website , select the installation package corresponding to your own operating system to download.

M5Stack's board management

1. Open the Arduino IDE, select File->Preferences->Settings

2. Copy the M5Stack board management URL below to the Additional Development Board Manager:

https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json

3. Select Tools->Development Board:->Development Board Manager...

4. In the new pop-up dialog box, enter and search for M5Stack(M5Stack as an example), click Install (If the search fails, you can try to restart the Arduino program)

5.Select Tools->Development board:->M5Stack Arduino, select the corresponding development board configuration according to the device we are using (M5Stack-Core-ESP32).

Using the Arduino CLI

Linux/macOS installation of the Arduino CLI

1.Type the following command in the terminal and wait for it to install

brew update
brew install arduino-cli

2.If you type arduino-cli in the terminal, the installation is successful when you get the following screen

Windows installation of the Arduino CLI

1.Select the appropriate installation file on this Page

2.Unzip the downloaded .zip file and install it

3.Just add the installation path of the file to the system PATH environment variable

4.If you type arduino-cli in the terminal, the installation is successful when you get the following screen

On This Page