SumeriLal / IDF_Projects

The programs for ESP32 using FreeRTOS and IDF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32 Starter template

on your command line run

npx create-esp32-app

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

About

The programs for ESP32 using FreeRTOS and IDF.


Languages

Language:C 77.3%Language:CMake 15.1%Language:HTML 3.0%Language:Makefile 3.0%Language:JavaScript 1.2%Language:CSS 0.6%