commit 400f4bc2d39a87aeae9ae76f56a87a9148f76d34 Author: coolneng Date: Fri Nov 8 16:54:39 2019 +0100 Create compiling script diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..5346655 --- /dev/null +++ b/compile.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + echo "Usage: compile.sh " +fi + +project=$1 + +arduino-cli compile --fqbn arduino:avr:uno "$project" && arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno "$project"