Skip to content

Commit

Permalink
Update auto_build.py paths for Atom/Sublime
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 12, 2020
1 parent 473d640 commit 89ccd46
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,56 @@
"caption": "PIO Build",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py build"
"command": "python buildroot/share/vscode/auto_build.py build"
}
},
{
"caption": "PIO Clean",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py clean"
"command": "python buildroot/share/vscode/auto_build.py clean"
}
},
{
"caption": "PIO Upload",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py upload"
"command": "python buildroot/share/vscode/auto_build.py upload"
}
},
{
"caption": "PIO Upload (traceback)",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py traceback"
"command": "python buildroot/share/vscode/auto_build.py traceback"
}
},
{
"caption": "PIO Upload using Programmer",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py program"
"command": "python buildroot/share/vscode/auto_build.py program"
}
},
{
"caption": "PIO Test",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py test"
"command": "python buildroot/share/vscode/auto_build.py test"
}
},
{
"caption": "PIO Debug",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py debug"
"command": "python buildroot/share/vscode/auto_build.py debug"
}
},
{
"caption": "PIO Remote",
"command": "webdevshell",
"args": {
"command": "python buildroot/share/atom/auto_build.py remote"
"command": "python buildroot/share/vscode/auto_build.py remote"
}
}
],
Expand Down
8 changes: 4 additions & 4 deletions buildroot/share/vscode/create_custom_upload_command_CDC.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def get_com_port(com_search_text, descr_search_text, start):
get_com_port('usbmodem', 'Description:', 13)

# avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf'
avrdude_conf_path = 'buildroot/share/atom/avrdude_macOS.conf'
avrdude_conf_path = 'buildroot/share/vscode/avrdude_macOS.conf'


avrdude_exe_path = 'buildroot/share/atom/avrdude_5.10_macOS'
avrdude_exe_path = 'buildroot/share/vscode/avrdude_5.10_macOS'

# source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex'
source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex'
Expand All @@ -127,10 +127,10 @@ def get_com_port(com_search_text, descr_search_text, start):
get_com_port('/dev/tty', 'Description:', 13)

# avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf'
avrdude_conf_path = 'buildroot/share/atom/avrdude_linux.conf'
avrdude_conf_path = 'buildroot/share/vscode/avrdude_linux.conf'


avrdude_exe_path = 'buildroot/share/atom/avrdude_5.10_linux'
avrdude_exe_path = 'buildroot/share/vscode/avrdude_5.10_linux'
# source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex'
source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex'

Expand Down
16 changes: 8 additions & 8 deletions process-palette.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"namespace": "process-palette",
"action": "PIO Build",
"command": "python buildroot/share/atom/auto_build.py build",
"command": "python buildroot/share/vscode/auto_build.py build",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -55,7 +55,7 @@
{
"namespace": "process-palette",
"action": "PIO Clean",
"command": "python buildroot/share/atom/auto_build.py clean",
"command": "python buildroot/share/vscode/auto_build.py clean",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -98,7 +98,7 @@
{
"namespace": "process-palette",
"action": "PIO Upload",
"command": "python buildroot/share/atom/auto_build.py upload",
"command": "python buildroot/share/vscode/auto_build.py upload",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -141,7 +141,7 @@
{
"namespace": "process-palette",
"action": "PIO Upload (traceback)",
"command": "python buildroot/share/atom/auto_build.py traceback",
"command": "python buildroot/share/vscode/auto_build.py traceback",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -184,7 +184,7 @@
{
"namespace": "process-palette",
"action": "PIO Upload using Programmer",
"command": "python buildroot/share/atom/auto_build.py program",
"command": "python buildroot/share/vscode/auto_build.py program",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -227,7 +227,7 @@
{
"namespace": "process-palette",
"action": "PIO Test",
"command": "python buildroot/share/atom/auto_build.py test",
"command": "python buildroot/share/vscode/auto_build.py test",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -270,7 +270,7 @@
{
"namespace": "process-palette",
"action": "PIO Debug",
"command": "python buildroot/share/atom/auto_build.py debug",
"command": "python buildroot/share/vscode/auto_build.py debug",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down Expand Up @@ -313,7 +313,7 @@
{
"namespace": "process-palette",
"action": "PIO Remote",
"command": "python buildroot/share/atom/auto_build.py remote",
"command": "python buildroot/share/vscode/auto_build.py remote",
"arguments": [],
"cwd": "{projectPath}",
"inputDialogs": [],
Expand Down

0 comments on commit 89ccd46

Please sign in to comment.