Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.85 KB

readme.md

File metadata and controls

48 lines (34 loc) · 1.85 KB

ESP32 Starter template

on your command line run

npx create-esp32-app

Quick overview

This template can be used as is but, its intended as a quick start for the students learning the ESP32-IDF through my course https://learnesp32.com

prerequisites

  1. You will need to have node installed.

  2. 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

  3. this template is for vscode which will need to be installed

  4. In VSCODE add the c++ extension

  5. ensure tour ESP32 is plugged in and that a COM PORT is established (You may need a driver for your ESP32 dev board)

Run command

  1. in any directory run
npx create-esp32-app
  1. you will be prompted for the name of your project.
  2. you will be prompted for the IDF path. select or navigate to the location of the IDF path
  3. you will be prompted for the IDF-tools path. select or navigate to the location of the IDF-tools path
  4. navigate to the directory of the project name you created
cd <project name>
  1. open the project in vscode code .

vs code intellisense

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

flashing the esp32

  1. in vs code, open a new terminal by pressing ctrl + ` (or pressing F1 and typing open new terminal)
  2. type the following command
idf.py -p [your com port] flash monitor