c2-utopia/flash.sh

9 lines
136 B
Bash
Executable File

#!/bin/bash
source .venv/bin/activate
env=${1:-main}
port=${2:-/dev/ttyACM0}
pio run --target=upload -e "$env" --upload-port "$port"