Skip to content

Instantly share code, notes, and snippets.

@gvn
Created December 3, 2012 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gvn/4197091 to your computer and use it in GitHub Desktop.
Save gvn/4197091 to your computer and use it in GitHub Desktop.
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

@billputer
Copy link

This needs a funnier name.

@gvn
Copy link
Author

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