arduino-course/compile.sh

10 lines
214 B
Bash
Raw Permalink Normal View History

2019-11-08 16:54:39 +01:00
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: compile.sh <Project>"
fi
project=$1
arduino-cli compile --fqbn arduino:avr:uno "$project" && arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno "$project"