feat: Initialize ESP-IDF project with Zigbee HA_on_off_switch example

- Added .devcontainer configuration for development environment.
- Created .gitignore to exclude unnecessary files.
- Configured C/C++ properties for ESP-IDF in VSCode.
- Set up launch configurations for debugging.
- Defined project settings for ESP-IDF in VSCode.
- Created CMakeLists.txt for project build configuration.
- Added README.md with project overview and usage instructions.
- Established dependencies for Zigbee libraries in dependencies.lock.
- Implemented main application logic in esp_zb_switch.c and esp_zb_switch.h.
- Developed switch driver functionality in switch_driver.c and switch_driver.h.
- Configured partition table in partitions.csv for NVS and application storage.
- Set default SDK configuration in sdkconfig.defaults for project settings.
This commit is contained in:
2026-01-15 21:46:31 +00:00
commit a05ac96d97
18 changed files with 1038 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "${config:idf.toolsPathWin}\\tools\\xtensa-esp-elf\\esp-14.2.0_20251107\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"compileCommands": "${config:idf.buildPath}/compile_commands.json",
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${workspaceFolder}/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}
+15
View File
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter"
},
{
"type": "espidf",
"name": "Launch",
"request": "launch"
}
]
}
+21
View File
@@ -0,0 +1,21 @@
{
"C_Cpp.intelliSenseEngine": "default",
"idf.espIdfPathWin": "d:\\PROGRAMAS\\esp\\v5.5.2\\esp-idf",
"idf.pythonInstallPath": "/opt/esp/python_env/idf6.1_py3.12_env/bin/python",
"idf.openOcdConfigs": [
"board/esp32c6-builtin.cfg"
],
"idf.portWin": "detect",
"idf.toolsPathWin": "d:\\PROGRAMAS\\.espressif",
"idf.customExtraVars": {
"IDF_TARGET": "esp32c6"
},
"clangd.path": "d:\\PROGRAMAS\\.espressif\\tools\\esp-clang\\esp-19.1.2_20250312\\esp-clang\\bin\\clangd.exe",
"clangd.arguments": [
"--background-index",
"--query-driver=**",
"--compile-commands-dir=d:\\PROJECTS\\bomba-esp\\build"
],
"idf.port": "/dev/ttyACM0",
"idf.flashType": "UART"
}