cangrow.sh add help text
This commit is contained in:
parent
1d667bd665
commit
bacb48a918
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ case $1 in
|
|||
;;
|
||||
b|build)
|
||||
check_acli
|
||||
echo "building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
||||
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
||||
test -d build || mkdir build
|
||||
echo "/* CanGrow_Version.h gets generated from cangrow.sh */
|
||||
|
||||
|
@ -84,17 +84,17 @@ const char* CanGrowBuild = \"${BUILD}\";
|
|||
;;
|
||||
u|upload)
|
||||
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"
|
||||
;;
|
||||
w|webupload)
|
||||
echo "uploading to $IP"
|
||||
echo ":: Uploading to $IP"
|
||||
curl -v http://$IP/system/applyUpdate -X POST -H 'Content-Type: multipart/form-data' -F "file=@$(pwd)/build/CanGrow.ino.bin"
|
||||
echo
|
||||
;;
|
||||
m|mon|monitor)
|
||||
check_acli
|
||||
echo "open monitor $TTY"
|
||||
echo ":: Open serial monitor $TTY"
|
||||
${ACLI_CMD} monitor -c baudrate=115200 -p $TTY
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue