-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add firmware update script for windows
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@echo off | ||
set /p port=<port.txt | ||
|
||
if %port% == COMX ( | ||
echo Arduino PORT not set | ||
echo Please set Arduino PORT in port.txt to one of the following devices: | ||
mode | ||
pause | ||
exit | ||
) | ||
|
||
set version=0.3.3 | ||
echo Arduino PORT set to %port% | ||
echo Upload Software Version %version% | ||
avrdude-v7.1-windows-x64\avrdude.exe -v -p atmega328p -C avrdude-v7.1-windows-x64\avrdude.conf -c arduino -b 115200 -D -P %port% -U flash:w:firmware-%version%.hex:i | ||
pause |