Updated the VSCode flash command in tasks.json which now prompts the user for the serial port number
This commit is contained in:
		
							parent
							
								
									6930494e0c
								
							
						
					
					
						commit
						14bb7c90e0
					
				
							
								
								
									
										11
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							@ -23,9 +23,9 @@
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Flash",
 | 
					            "label": "Flash",
 | 
				
			||||||
            "type": "shell",
 | 
					            "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":{
 | 
					            "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",
 | 
					            "group": "build",
 | 
				
			||||||
            "presentation": {
 | 
					            "presentation": {
 | 
				
			||||||
@ -44,5 +44,12 @@
 | 
				
			|||||||
            "dependsOrder": "sequence",
 | 
					            "dependsOrder": "sequence",
 | 
				
			||||||
            "dependsOn":["Build", "Flash"]
 | 
					            "dependsOn":["Build", "Flash"]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    "inputs": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "id":"com_port",
 | 
				
			||||||
 | 
					            "type":"promptString",
 | 
				
			||||||
 | 
					            "description": "target serial port : COMXX"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user