init weather_station repo

This commit is contained in:
2026-01-24 13:02:13 +08:00
commit 38023a9bf5
18 changed files with 3333 additions and 0 deletions

19
scripts/download.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
# 连接并打印文件列表
mpremote connect /dev/tty.wchusbserial14310 ls
# 生成romfs文件系统并上传
mpremote romfs -o website.romfs build website
mpremote romfs deploy website.romfs
# 复制文件
for file in src/*.py; do
if [ -f "$file" ]; then
mpremote fs cp "$file" :
fi
done
# 打印文件列表
mpremote ls /
mpremote ls /rom