Pages: [1]   Go Down
Author Topic: Using my own library  (Read 382 times)
0 Members and 1 Guest are viewing this topic.
Land of Oz
Offline Offline
Jr. Member
**
Karma: 3
Posts: 73
I dream in Assembler
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If this had been asked before please provide me with a link to the subject:

If I modify an Arduino library, does the compiler first look in the 'My Documents' Arduino folder (i.e where user's sketches are stored) for the library or is there some path that needs to be changed.
E.g. If I modify the Ethernet lib and place the modified lib in the 'My Documents' folder in the library sub-folder, can I get the compiler to use this, using the original library name ?

I tried this and its not doing what I wanted to I might have made a mistake or it simply can't be done.
Any advice would be appreciated
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1273
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried calling it something different? It is probably safer in the long run as it will be clear when you come back to this project that you were not using the original library.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13742
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just prefix the libname with "my" or "test"

Note you might need to restart the IDE to become aware of new libs.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 30
I am passionate about electronics, industrial and home automation. Love DIY stuff
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hi,
just for reference: http://www.biemmeitalia.net/blog/how-to-install-a-new-arduino-library/

elle
Logged


Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 617
Posts: 49454
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I tried this and its not doing what I wanted
Without knowing which library you are modifying, how you are changing it, what you wanted the change to accomplish, and what exactly happened, all we can offer is sympathy. Which probably isn't a lot of help. So, I won't.
Logged

Pages: [1]   Go Up
Jump to: