Skip to content

Instantly share code, notes, and snippets.

@j4mie
Created October 17, 2012 21:17
Show Gist options
  • Save j4mie/3908246 to your computer and use it in GitHub Desktop.
Save j4mie/3908246 to your computer and use it in GitHub Desktop.
arduino-makefile-osx

Ardiuno-Makefile instructions for OS X

Examples for Arduino Nano V3.0.

First, install the Arduino software from arduino.cc as usual, as well as the FTDI driver (if needed for your board). https://github.com/mjoldfield/Arduino-Makefile

You'll need a couple of Perl modules:

sudo cpan YAML
sudo cpan Device::SerialPort

Note: cpan may break after first use. If it does, try sudo chmod +x /usr/bin/cpan

git clone https://github.com/mjoldfield/Arduino-Makefile.git arduino-makefile
cd arduino-makefile/examples/Blink

Edit Makefile and change BOARD_TAG to nano328 and ARDUINO_PORT to /dev/tty.usb*

export ARDUINO_DIR=/Applications/Arduino.app/Contents/Resources/Java/
export ARDMK_DIR=../../
make
make upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment