move cangrow.sh and arduino-cli.yml to Arduino/Cangrow/

This commit is contained in:
Marcus 2024-10-18 00:58:28 +02:00
parent 717b201889
commit 764cf45b80
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ function version_header() {
const char* CanGrowVer = \"${VER}\"; const char* CanGrowVer = \"${VER}\";
const char* CanGrowBuild = \"${BUILD}\"; const char* CanGrowBuild = \"${BUILD}\";
" > Arduino/CanGrow/include/CanGrow_Version.h " > include/CanGrow_Version.h
} }
test -z $1 && help test -z $1 && help
@ -101,14 +101,14 @@ case $1 in
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/" echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
version_header version_header
test -d build || mkdir build 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 cp build/CanGrow.ino.bin build/CanGrow_v${VER}_${BUILD}.bin
;; ;;
u|upload) u|upload)
check_acli check_acli
echo ":: Build and upload firmware $VER $BUILD to $TTY" echo ":: Build and upload firmware $VER $BUILD to $TTY"
version_header 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) w|webupload)
echo ":: Uploading to $IP" echo ":: Uploading to $IP"