on your command line run
npx create-esp32-app
-
You will need to have node installed.
-
The esp-idf must be set up. you can follow the instructions in my course (free of charge) on the Setting up Your Environment module or follow the official documentation
-
this template is for vscode which will need to be installed
-
In VSCODE add the c++ extension
-
ensure tour ESP32 is plugged in and that a COM PORT is established (You may need a driver for your ESP32 dev board)
- in any directory run
npx create-esp32-app
- you will be prompted for the name of your project.
- you will be prompted for the IDF path. select or navigate to the location of the IDF path
- you will be prompted for the IDF-tools path. select or navigate to the location of the IDF-tools path
- navigate to the directory of the project name you created
cd <project name>
- open the project in vscode
code .
intellisense should just work so long as you have set up the paths correctly. If you have trouble double check your idf and tools paths and correct them in the /.vscode/c_cpp_properties.json file
- in vs code, open a new terminal by pressing ctrl + ` (or pressing F1 and typing
open new terminal
) - type the following command
idf.py -p [your com port] flash monitor