Pages: [1]   Go Down
Author Topic: Libraries and resources  (Read 365 times)
0 Members and 1 Guest are viewing this topic.
Argentina
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there!

I would like to know what resources are being used by the libraries I include in my sketch so they don´t interfere wit each other.

For example I would like to know if timer "n" is being used by any library or if it´s available for me to use.

Is there any way to get a summary of the resources used by each library and core functions?

Thanks a lot!
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12092
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Browse/grep the library's code, usually this yields useful information and caveats that are there in the comments, but you can always search/grep strings like 'TCCR', 'ISR' if in a hurry.  Don't assume web documentation matches the version you have, go to the horse's mouth.
Logged

[ I won't respond to messages, use the forum please ]

Argentina
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! That´s what I´ve been doing but sometimes it´s quite frustrating smiley-razz
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12092
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Indeed - if there were a standard repository for libraries where such information was recorded on a standard header page, it would be great.  Ditto for information on shields and pins.  The main obstacle is the wide variety of libraries and hardware out there in the Arduino ecosystem built by lots of different people and companies - many are added to the Playground Wiki http://arduino.cc/playground/, but its rather too informal at the moment - but is probably the place to start attacking this issue.
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 481
Posts: 18737
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there any way to get a summary of the resources used by each library and core functions?

No, I don't believe the library authors provide such a thing. And indeed some libraries can clash, particularly if they use timers, pin change interrupts, or indeed, any interrupts. Or for that matter, any pins at all.

Quote
Ditto for information on shields and pins.

You are in luck there, to an extent. Some sites do summarize shields and pins.

Example:  http://www.shieldlist.org/
Logged


Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 46
Posts: 2883
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some like Henning Karlsen (UTFT) and Mikal Hart (Tiny GPS) provide a summary of available functions and a brief summary of the details... Great tools to work with too, both lib's.
Many don't at all.

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Pages: [1]   Go Up
Jump to: