first commit.

This commit is contained in:
2024-01-15 00:14:47 +08:00
commit 8f45032f34
16 changed files with 392 additions and 0 deletions

21
scripts/flash.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e
BUILD_MODE=""
case "$1" in
"" | "release")
bash scripts/build.sh
BUILD_MODE="release"
;;
"debug")
bash scripts/build.sh debug
BUILD_MODE="debug"
;;
*)
echo "Wrong argument. Only \"debug\"/\"release\" arguments are supported"
exit 1
;;
esac
web-flash --chip esp32c3 target/riscv32imc-esp-espidf/${BUILD_MODE}/network-monitor-esp-rs