My personal lists of concepts I feel that need commented examples for easier understanding.
Often just the setup and trying out examples turns off people using ESP-IDF. So to simplify the requirements the setup assumes and requires VSCode and the ESP-IDF extension already set up. There are plenty of guides on how to get to this stage.
-
Clone the repo
git clone https://github.com/ucflumm/esp_idf_examples
-
Open VSCode
-
Click on File->Open Folder...
- Select the example directory which you wish to flash. Do not open the root directory otherwise when you try to flash it will break.
The project esp_idf_examples contains one source file in C language main.c. The file is located in folder main.
ESP-IDF projects are built using CMake. The project build configuration is contained in CMakeLists.txt
files that provide set of directives and instructions describing the project's source files and targets
(executable, library, or both).
Below is short explanation of remaining files in the project folder.
esp_idf_examples/
├─ traffic_light_esp32/
│ ├─ main/
│ │ ├─ CMakeLists.txt
│ ├─ CMakeLists.txt
│ ├─ README.md
│ ├─ components/
├─ serve_htmx_idf/
│ ├─ main/
│ │ ├─ CMakeLists.txt
│ ├─ CMakeLists.txt
│ ├─ README.md
│ ├─ components/
├─ README.md