ard 311 B

123456789101112
  1. # Uses the Arduino command line interface
  2. #
  3. # https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc
  4. set -e
  5. rm -rf w/*
  6. cp $1.ino w/
  7. [ -f "converted-assets/$1_assets.h" ] && cp converted-assets/$1_assets.h w/
  8. cd w/
  9. # --preserve-temp-files
  10. time $HOME/arduino-1.8.3/arduino -v --upload $1.ino