-
Download this Makefile
-
Install YAML and SerialPort Perl libraries
Using Terminal:
sudo cpan
install YAML
install Device::SerialPort
-
Follow these instructions to install the Makefile
-
Create new Sublime build system
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.