add preset to upload frimware

This commit is contained in:
2025-05-16 19:36:48 +02:00
parent 910bf1419e
commit 6097fce596
2 changed files with 37 additions and 0 deletions

29
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,29 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cmake",
"label": "CMake: build",
"command": "build",
"targets": [
"all"
],
"preset": "${command:cmake.activeBuildPresetName}",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Build project using CMake Release preset"
},
{
"type": "cmake",
"label": "CMake: flash",
"command": "build",
"preset": "flash",
"group": "none",
"problemMatcher": [],
"detail": "Flash firmware to microcontroller using CMake flash preset"
}
]
}

View File

@@ -21,6 +21,14 @@
{
"name": "Release",
"configurePreset": "Release"
},
{
"name": "flash",
"configurePreset": "Release",
"targets": [
"flash"
],
"description": "Build and flash firmware to AVR"
}
]
}