From c6a1e7c00cd2946cef7716b205026a907136778b Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 12 Jul 2026 18:41:28 +0800
Subject: [PATCH] Add ex1.servo-sg90

---
 ex1.servo-sg90/.vscode/tasks.json |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/ex1.servo-sg90/.vscode/tasks.json b/ex1.servo-sg90/.vscode/tasks.json
new file mode 100644
index 0000000..c8d0ec6
--- /dev/null
+++ b/ex1.servo-sg90/.vscode/tasks.json
@@ -0,0 +1,65 @@
+{
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "STM32: Flash via ST-Link(SWD)",
+            "type": "shell",
+            "command": "D:\\Program Files\\ST\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe",
+            "args": [
+                "-c port=SWD",
+                "-e all",
+                "-w",
+                "${workspaceFolder}\\build\\Release\\ISKBoard.elf",
+                "0x08000000",
+                "-v",
+                "-rst"
+            ],
+            "group": {
+                "kind": "build",
+                "isDefault": false
+            },
+            "problemMatcher": [],
+            "presentation": {
+                "reveal": "always",
+                "panel": "shared",
+                "clear": true
+            }
+        },
+        {
+            "label": "STM32: Flash via stm32flash(UART)",
+            "type": "shell",
+            "command": "${workspaceFolder}/.vscode/stm32flash.bat",
+            "args": [
+                "${input:comPort}"
+            ],
+            "options": {
+                "env": {
+                    "PATH": "${env:PATH}",
+                    "SystemRoot": "${env:SystemRoot}",
+                    "GCC_BIN": "${env:LOCALAPPDATA}\\stm32cube\\bundles\\gnu-tools-for-stm32\\14.3.1+st.2\\bin",
+                    "ELF": "${workspaceFolder}\\build\\Release\\ISKBoard.elf",
+                    "BIN": "${workspaceFolder}\\build\\Release\\ISKBoard.bin",
+                    "FLASH_EXE": "${workspaceFolder}\\.vscode\\stm32flash.exe"
+                }
+            },
+            "group": {
+                "kind": "build",
+                "isDefault": false
+            },
+            "problemMatcher": [],
+            "presentation": {
+                "reveal": "always",
+                "panel": "shared",
+                "clear": true
+            }
+        }
+    ],
+    "inputs": [
+        {
+            "id": "comPort",
+            "type": "promptString",
+            "description": "!!!请确保开发板进入烧录模式,并输入串口号!!!",
+            "default": "COM22"
+        }
+    ]
+}
\ No newline at end of file

--
Gitblit v1.10.0