Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: How to compile in Sublime Text 2 using makefile. Teensy 3

  1. #1

    How to compile in Sublime Text 2 using makefile. Teensy 3

    I've got teensyduino up and running without problem with my Teensy 3. Since I've become very fond of the editor sublime text 2 i'd like to compile outside teensyduino using a makefile.
    Has anyone tried this and made it work. I'm struggling with the makefile and am a bit lost actually. Grateful for help and suggestions!


  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    The easiest way, but not the most graceful, is in Arduino's File > Preference menu. Select "use external editor". You'll see the Arduino editor becomes gray and can't be edited anymore. But you can still click Verify and Upload. When Arduino is in this mode, it actually reads the files.

    So just edit the files with Sublime Text, save, then click Upload in the Arduino window (which you'll probably make small, since you only need the toolbar and the console to see any errors).

    Maybe there's some way for it to run the makefile? I do not know, since I've never used that particular editor.

  3. #3
    Perfect! Works like a charm.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts