Loading...
Pages: [1]   Go Down
Author Topic: Libraries and resources  (Read 130 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
Tesla Member
***
Karma: 71
Posts: 6624
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

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
Tesla Member
***
Karma: 71
Posts: 6624
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

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 219
Posts: 13897
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
Edison Member
*
Karma: 31
Posts: 2310
Experienced old Whitebeard with a Full head of Hair...
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

“The solution of every problem is another problem.” -Johann Wolfgang von Goethe

Pages: [1]   Go Up
Print
 
Jump to: