basic command-line script to compile and flash arduinos
First install the arduino and avr toolchains:
sudo apt-get install arduino python-pip gcc-avr avr-libc binutils-avr avrdude
Mac users! If you figure out what the brew
equivalents for the apt-gets above
are, please share!
To flash the connected arduino with the program in main.ino
, do:
$ ./make.sh
Put vendor packages in ./vendor
. For example:
$ mkdir -p vendor/shield
$ git clone git@github.com:adafruit/Adafruit-Motor-Shield-library.git vendor/shield
Then you can #include
them like so:
#include <AFMotor.h>