30 lines
653 B
Markdown
30 lines
653 B
Markdown
# ESP-IDF Template
|
|
|
|
A minimal ESP-IDF project template.
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
├── CMakeLists.txt
|
|
├── sdkconfig
|
|
├── main/
|
|
│ ├── CMakeLists.txt
|
|
│ └── main.c
|
|
└── README.md
|
|
```
|
|
|
|
## Getting Started
|
|
|
|
1. Install ESP-IDF
|
|
2. Copy this template
|
|
3. Configure with `idf.py menuconfig`
|
|
4. Build with `idf.py build`
|
|
5. Flash with `idf.py flash`
|
|
|
|
## Clangd Setup
|
|
|
|
For enhanced code intelligence with clangd:
|
|
|
|
1. Install ESP-specific clangd: `idf_tools.py install esp-clang`
|
|
2. Configure the project for clangd: `idf.py -B build.clang -D IDF_TOOLCHAIN=clang reconfigure` (or use the `:ESPReconfigure` command in VSCode)
|