Start by making sure you have platformio core installed.
If you are not using the
esp32 devkit board
you may need to modify platformio.ini to reflect the correct environment.
You can create new envs by tagging the config, for example:
[env:arduino]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
Then when compiling add the -e arduino flag to the pio command.
There is a Makefile for the basic configuration, you can refer there for the basic commands.
You can alter the default env of esp32 by providing PIOENV in the environment.
To compile run:
make
To compile and upload:
make upload
To drop into the Serial Monitor for the connected board:
make logs
To upload to a specific environment
PIOENV=circuitplay_classic make upload