arduino-cli now wants to have board specified in monitor mode
This commit is contained in:
parent
1a1fd39ffa
commit
c59f790c15
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* CanGrow_Version.h gets generated from cangrow.sh */
|
/* CanGrow_Version.h gets generated from cangrow.sh */
|
||||||
|
|
||||||
const char* CanGrowVer = "0.1-dev";
|
const char* CanGrowVer = "0.1-dev";
|
||||||
const char* CanGrowBuild = "6554c0a-20240728025133";
|
const char* CanGrowBuild = "1a1fd39-20240912013347";
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ BUILD="$(git rev-parse --short HEAD)-$(date '+%Y%m%d%H%M%S')"
|
||||||
|
|
||||||
ACLI="$HOME/.local/bin/arduino-cli"
|
ACLI="$HOME/.local/bin/arduino-cli"
|
||||||
ACLI_CMD="$ACLI --config-file arduino-cli.yml"
|
ACLI_CMD="$ACLI --config-file arduino-cli.yml"
|
||||||
|
BOARD="esp8266:esp8266:d1_mini_clone"
|
||||||
|
|
||||||
function help() {
|
function help() {
|
||||||
echo "$0 [setup|build|upload|webupload|monitor]"
|
echo "$0 [setup|build|upload|webupload|monitor]"
|
||||||
|
@ -79,13 +79,13 @@ case $1 in
|
||||||
const char* CanGrowVer = \"${VER}\";
|
const char* CanGrowVer = \"${VER}\";
|
||||||
const char* CanGrowBuild = \"${BUILD}\";
|
const char* CanGrowBuild = \"${BUILD}\";
|
||||||
" > Arduino/CanGrow/CanGrow_Version.h
|
" > Arduino/CanGrow/CanGrow_Version.h
|
||||||
${ACLI_CMD} --no-color compile -b esp8266:esp8266:d1_mini_clone "Arduino/CanGrow/CanGrow.ino" --output-dir build/ || exit 1
|
${ACLI_CMD} --no-color compile -b ${BOARD} "Arduino/CanGrow/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 ":: Uploading to $TTY"
|
echo ":: Uploading to $TTY"
|
||||||
${ACLI_CMD} --no-color compile -v -b esp8266:esp8266:d1_mini_clone -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
|
${ACLI_CMD} --no-color compile -v -b ${BOARD} -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
|
||||||
;;
|
;;
|
||||||
w|webupload)
|
w|webupload)
|
||||||
echo ":: Uploading to $IP"
|
echo ":: Uploading to $IP"
|
||||||
|
@ -95,7 +95,7 @@ const char* CanGrowBuild = \"${BUILD}\";
|
||||||
m|mon|monitor)
|
m|mon|monitor)
|
||||||
check_acli
|
check_acli
|
||||||
echo ":: Open serial monitor $TTY"
|
echo ":: Open serial monitor $TTY"
|
||||||
${ACLI_CMD} monitor -c baudrate=115200 -p $TTY
|
${ACLI_CMD} monitor -c baudrate=115200 -b ${BOARD} -p $TTY
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
help
|
help
|
||||||
|
|
Loading…
Reference in a new issue