Uploading Arduino Sketches to the Teensy 3.1 from the Terminal
First, install Arduino 1.6.1 from http://arduino.cc/en/Main/Software. I followed the Mac OS X for Java 6 link to download arduino-1.6.1-macosx.zip
. Install Arduino by unzipping the Arduino
file and moving it to /Applications/Arduino
. Open Arduino to make sure it works and so it can finish setting up the environment for use. Next, install Teensyduino 1.21 from https://www.pjrc.com/teensy/td_download.html. I followed Macintosh OS-X Installer to download teensyduino.dmg
. Open and proceed through the Teensyduino installer, and when prompted to locate Arduino, select /Applications/Arduino
, then continue to the next step in the installer.
At this point, you should be ready to upload a sketch. Follow the instructions below.
To upload from the terminal, enter the following command:
/Applications/Arduino.app/Contents/MacOS/JavaApplicationStub --board teensy:avr:teensy31 --port /dev/tty.usbmodem573061 --upload /Users/mokogobo/Checkout