0

So this is a question not just about the #include but most all includes you find while programming in C.

So I understand a library is prewritten code and when you include that library are you able to used certain function that are included in that library.

What I have always wanted to know is: where can you find the "instruction set", in C, for these libraries?

How can I find out what commands are available for me to use with this library?

hope this makes sense.

thank you everyone.

  • A library provides an Application Program Interface (API) and the API should be documented with the library somewhere, but the quality of that documentation varies depending on the library. Maybe arduino.cc/en/Reference/Libraries is a place to start? – Dave X Mar 13 '16 at 2:30
  • where can you find the "instruction set", in C, for these libraries? Libraries come with either binary or source files. You should include the header file (.h or .hpp) in this file you can find the function definitions along with (usually) comments. If you have a implementation file (.c or .cpp) these will have the (C/C++) source code available. – Paul Mar 17 '16 at 9:57
2

What I have always wanted to know is: where can you find the "instruction set", inc C, for these libraries?

The libraries are usually found in the libraries sub-folder under your sketchbook folder (wherever that is). There is also another libraries folder inside the IDE install folder for the "official libraries".

How can I find out what commands are available for me to use with this library?

Usually the library documents them in one way or another. Try looking inside the .h file used by the library to see what functions are exposed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.