Skip to content

Instantly share code, notes, and snippets.

@EthraZa
Created April 21, 2016 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EthraZa/f57c0d8ff39b76cd2ce75c68f29092fd to your computer and use it in GitHub Desktop.
Save EthraZa/f57c0d8ff39b76cd2ce75c68f29092fd to your computer and use it in GitHub Desktop.
//
// Visual Studio Code Arduino Tasks.json
// Author: Allan Brazute @ SpotApp
//
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
//
{
"version": "0.1.0",
"command": "bash",
"isShellCommand": true,
"showOutput": "always",
"args": ["-c"],
"tasks": [
{
"taskName": "Verify",
"suppressTaskName": true,
"isTestCommand": true,
"args": ["arduino -v --verify ${file}"]
},{
"taskName": "Upload",
"suppressTaskName": true,
"isBuildCommand": true,
"args": ["arduino -v --upload ${file}"]
},{
"taskName": "Serial Monitor",
"suppressTaskName": true,
"args": ["cat /dev/ttyACM0"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment