Updated the VSCode flash command in tasks.json which now prompts the user for the serial port number

This commit is contained in:
Th3maz1ng 2022-09-18 10:05:13 +02:00
parent 6930494e0c
commit 14bb7c90e0

11
.vscode/tasks.json vendored
View File

@ -23,9 +23,9 @@
{
"label": "Flash",
"type": "shell",
"command": "arduino-cli upload -v -b esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=enabled,ssl=basic,mmu=3232,non32xfer=fast,eesz=4M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 \"`pwd`/src/app\" -p COM15",
"command": "arduino-cli upload -v -b esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=enabled,ssl=basic,mmu=3232,non32xfer=fast,eesz=4M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=all,baud=921600 \"`pwd`/src/app\" -p ${input:com_port}",
"windows":{
"command": "arduino-cli upload -v -b esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=enabled,ssl=basic,mmu=3232,non32xfer=fast,eesz=4M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 ((pwd).path + '/src/app') -p COM15"
"command": "arduino-cli upload -v -b esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=enabled,ssl=basic,mmu=3232,non32xfer=fast,eesz=4M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=all,baud=921600 ((pwd).path + '/src/app') -p ${input:com_port}"
},
"group": "build",
"presentation": {
@ -44,5 +44,12 @@
"dependsOrder": "sequence",
"dependsOn":["Build", "Flash"]
}
],
"inputs": [
{
"id":"com_port",
"type":"promptString",
"description": "target serial port : COMXX"
}
]
}