move cangrow.sh and arduino-cli.yml to Arduino/Cangrow/
This commit is contained in:
parent
717b201889
commit
764cf45b80
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ function version_header() {
|
|||
|
||||
const char* CanGrowVer = \"${VER}\";
|
||||
const char* CanGrowBuild = \"${BUILD}\";
|
||||
" > Arduino/CanGrow/include/CanGrow_Version.h
|
||||
" > include/CanGrow_Version.h
|
||||
}
|
||||
|
||||
test -z $1 && help
|
||||
|
@ -101,14 +101,14 @@ case $1 in
|
|||
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
||||
version_header
|
||||
test -d build || mkdir build
|
||||
${ACLI_CMD} --no-color compile -b ${BOARD} "Arduino/CanGrow/CanGrow.ino" --output-dir build/ || exit 1
|
||||
${ACLI_CMD} --no-color compile -b ${BOARD} "CanGrow.ino" --output-dir build/ || exit 1
|
||||
cp build/CanGrow.ino.bin build/CanGrow_v${VER}_${BUILD}.bin
|
||||
;;
|
||||
u|upload)
|
||||
check_acli
|
||||
echo ":: Build and upload firmware $VER $BUILD to $TTY"
|
||||
version_header
|
||||
${ACLI_CMD} --no-color compile -b ${BOARD} -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
|
||||
${ACLI_CMD} --no-color compile -b ${BOARD} -u -p $TTY "CanGrow.ino"
|
||||
;;
|
||||
w|webupload)
|
||||
echo ":: Uploading to $IP"
|
Loading…
Reference in a new issue