Skip to content

Commit

Permalink
Add firmware update script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr committed Feb 23, 2023
1 parent 46c7bfa commit 0e28226
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions release/port.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COMX
16 changes: 16 additions & 0 deletions release/update.bat
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

0 comments on commit 0e28226

Please sign in to comment.