Create compiling script

This commit is contained in:
coolneng 2019-11-08 16:54:39 +01:00
commit 400f4bc2d3
1 changed files with 9 additions and 0 deletions

9
compile.sh Executable file
View File

@ -0,0 +1,9 @@
#!/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"