c2-utopia/flash.sh

9 lines
136 B
Bash
Raw Normal View History

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