Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Building and Uploading Arduino Sketches in Sublime Text 2 (OSX)

Building and Uploading Arduino Sketches in Sublime Text 2 (OSX)

  • Download this Makefile

  • Install YAML and SerialPort Perl libraries

Using Terminal:

sudo cpan

install YAML

install Device::SerialPort

Tools -> Build -> New Build System

{
    "shell": "true",
    "cmd": ["make && make upload"]
}
  • Add a smaller makefile in your sketch directory called "Makefile"

Example:

BOARD_TAG    = uno
ARDUINO_PORT = /dev/cu.usb*
ARDUINO_LIBS = 

include /usr/local/arduino/Arduino.mk
  • When you're ready to build and upload from Sublime simply run:

Tools -> Build

This needs a funnier name.

Owner
gvn commented Dec 3, 2012

I made the name longer...is that ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment