Here’s the shortest “Getting Started” you’ve ever seen (disclaimer† …I’m making the huge assumption that you already use PlatformIO as your development environment for your ESP8266 projects. If you don’t, you should!).
Add support for the ESP32 with:-
platformio platform install espressif32
Create your new development (project) directory and, in that new directory, initialize the environment for the type of board you have‡ with:-
platformio init --board=esp32dev
Start writing code, as normal, in the newly created src directory and then compile with:-
At this point, PlatformIO will go off and automatically download the framework support for your environment (this first time, only) and then compile your code.
You just can’t get any easier than that!
† I don’t actually have an ESP32 board yet.
‡ List the available target boards with “
Ψ If you’re tired of typing “platformio” in full each time, you can shorten it to “pio” (“platformio” is used for clarity here).
ω For more information on getting started with PlatformIO, see the full documentation at:- http://docs.platformio.org/