~/Projects/arduino-starter
git clone https://code.lsong.org/arduino-starter
arduino-starter
basic command-line script to compile and flash arduinos
install
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!
flash and run
To flash the connected arduino with the program in main.ino
, do:
$ ./make.sh
vendor packages
Put vendor packages in ./vendor
. For example:
$ mkdir -p vendor/shield
$ git clone [email protected]:adafruit/Adafruit-Motor-Shield-library.git vendor/shield
Then you can #include
them like so:
#include <AFMotor.h>