The first thing you will need to do is to download the latest release of the Arduino IDE. You will need to be using version 1.8 or higher for this guide
The ESP32-S2 Arduino board support package is currently in active development. To use the ESP32-S2 with Arduino, you'll need to follow the steps below for your operating system.
Note that we are not using the Arduino board support package installer, instead we are going to be running the latest version from Espressif's ESP32 github repository and the v4.2 branch
Follow these instructions to install ESP32 support from the development respository on github (do not install from the Arduino board manager!)
However, there's one step different
After you start by git-cloning
https://github.com/espressif/arduino-esp32.git in to your
Switch to the v4.2 branch with:
git checkout --track origin/"idf-release/v4.2"
If you look in the
sketchfolder/hardware/espressif/esp/variants folder you will see
adafruit_metro_esp32s2 and others
Once you verify that - you can continue with the instructions.
git submodule update --init --recursive
On mac/Linux then run
cd tools && python get.py
On Windows run the
get.exe program in the
Then, restart the Arduino IDE.
In the Tools -> Board submenu you should see ESP32 Arduino (in sketchbook) and in that dropdown look for Adafurit Metro ESP32-S2, or whatever your board is called