I'm trying to locate or search for the .h files or libraries in the Arduino IDE using Finder on a MAC (OS X).
I have installed the Adafruit Arduino 1.0.5 IDE which works fine and is located in the Applications Directory
I do see the Documents/Arduino/libraries folder, which contains a read me file, as well as a folder for each of my projects/sketches.
However I would like to find and examine the math.h files or even the Adafruit_NeoPixel header and library files.
The only way I can see them is by going to the Arduino application and "Show Package Contents" which is under the
Contents/Resources/Java/libraries folder I can then see the files and open them, but seems kinda counter intuitive.
Is this typical? Do I have it installed right? How can I use Finder to find the .h files or other libraries?
It seems this is more of a Mac / OSX question than Arduino, but would like to post as I see the Adafruit (and others I'm sure) work from a Mac.
Many thanks!
Viewing Libraries and .h files on a Mac / OSX
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Viewing Libraries and .h files on a Mac / OSX
Open Package Contents is the way you do it. There's no other way.
- Doryen
- Posts: 35
- Joined: Thu Aug 07, 2014 7:54 pm
Re: Viewing Libraries and .h files on a Mac / OSX
Thanks for the quick response Rick!
I'll have to now experiment with adding a library to see where it ends up!
I'll have to now experiment with adding a library to see where it ends up!
- egutting
- Posts: 297
- Joined: Wed Nov 14, 2012 12:57 am
Re: Viewing Libraries and .h files on a Mac / OSX
Added libraries should go in your Arduino library (in the libraries folder) in Documents. (At least that's where they go for me and I'm on BANNED)
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Viewing Libraries and .h files on a Mac / OSX
Your sketches should be in Documents/Arduino. Only the libraries should go in Documents/Arduino/librariesDoryen wrote:I do see the Documents/Arduino/libraries folder, which contains a read me file, as well as a folder for each of my projects/sketches.
Adafruit_NeoPixel should go in Documents/Arduino/libraries. Only system libraries should be in the package. You should never have a reason to add anything to the package.Doryen wrote:However I would like to find and examine the math.h files or even the Adafruit_NeoPixel header and library files.
- Doryen
- Posts: 35
- Joined: Thu Aug 07, 2014 7:54 pm
Re: Viewing Libraries and .h files on a Mac / OSX
Thanks Rick!
This library was already installed in the package under Contents/Resources/Java/libraries folder - I took the easy route installing the Adafruit Arduino IDE, so I guess it works either way, right?egutting wrote:Adafruit_NeoPixel should go in Documents/Arduino/libraries. Only system libraries should be in the package. You should never have a reason to add anything to the package.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Viewing Libraries and .h files on a Mac / OSX
It works either way, but if you install your libraries in the package, then you will lose them when you upgrade to a new version of the IDE. Similarly, I run both 1.0.5 and 1.5.6 (for the Due) simultaneously. They both use the same Documents/Arduino/libraries folder, so I don't have to duplicate anything.
- Doryen
- Posts: 35
- Joined: Thu Aug 07, 2014 7:54 pm
Re: Viewing Libraries and .h files on a Mac / OSX
Got it! Thanks again!
Please be positive and constructive with your questions and comments.