Browse Source

Command-line builder

James Bowman 6 years ago
parent
commit
58b9ebc3b4
1 changed files with 12 additions and 0 deletions
  1. 12 0
      ard

+ 12 - 0
ard

@@ -0,0 +1,12 @@
+# Uses the Arduino command line interface
+#
+# https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc
+
+set -e
+
+rm -rf w/*
+cp $1.ino w/
+[ -f "converted-assets/$1_assets.h" ] && cp converted-assets/$1_assets.h w/
+cd w/
+# --preserve-temp-files 
+time $HOME/arduino-1.8.3/arduino -v --upload $1.ino