mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
- src/main.cpp rewritten for ESP32-S3: Serial + display_init + WiFi
connect (logic ported from old main.cpp, M5.Lcd prints -> Serial),
LVGL test button screen to verify touch in Phase 1
- include/text_utils.h, date_utils.h: kept 1:1 (no M5Stack dependency)
- include/secrets.h.example, .gitignore, scripts/{build,deploy}.sh,
.github/workflows/build.yml: kept 1:1 (hardware-independent)
21 lines
567 B
Bash
21 lines
567 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
VENV_DIR=".venv-platformio"
|
|
if [ ! -d "$VENV_DIR" ]; then
|
|
echo "Creating local virtualenv in $VENV_DIR ..."
|
|
python3 -m venv "$VENV_DIR"
|
|
"$VENV_DIR/bin/pip" install --upgrade pip
|
|
"$VENV_DIR/bin/pip" install platformio
|
|
fi
|
|
PIO="$VENV_DIR/bin/pio"
|
|
if [ "$#" -ge 1 ]; then
|
|
PORT="$1"
|
|
echo "Using forced upload port: $PORT"
|
|
"$PIO" run --target upload --upload-port "$PORT"
|
|
else
|
|
echo "Auto-detecting upload port..."
|
|
"$PIO" run --target upload
|
|
fi
|
|
echo "Build + flash complete."
|