Skip to content

Instantly share code, notes, and snippets.

@rsobik
Created December 10, 2012 18:10
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 rsobik/4252224 to your computer and use it in GitHub Desktop.
Save rsobik/4252224 to your computer and use it in GitHub Desktop.
Sublime Text 2 Project File for Arduino and SublimeClang
{
"folders":
[
{
"path": "."
}
],
"settings":
{
"sublimeclang_options":
[
"-D__AVR_ATmega328P__",
"-DARDUINO=100",
"-DF_CPU=16000000L",
"-Wno-unknown-attributes",
"-Wno-attributes",
"-I${folder:${project_path:NAME_HERE.sublime-project}}/lib/**",
"-I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino",
"-I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard",
"-I/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include",
"-I/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include/**"
]
}
}
@ladislas
Copy link

ladislas commented Dec 3, 2013

hi! thanks for this useful gist! :)
I have some question though: where did you find that you should configure it like that? Is it valid for every Arduino board or just the Uno? What should I change if I'm using the Arduino Mega2560?
Cheers!

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