Go Down

Topic: Contents of a Library? (beginner question) (Read 1 time) previous topic - next topic

jman31

How can you tell what functions and processes are in someone's library if it isn't shown by them? I mean, if for instance I click on this LCD library and I get the example, but no function explanations. Is there a way to see what was defined in the library and what can be done with those functions? Like this example. It's not just this library, it seems like there are a lot like that. Am I just missing something

PaulS

The library consists of a header file and a source file. The header file defines the functions that are implemented by the source file.

Typically, the developer includes comments that define what each function does, what the input and outputs of the function are, and what error conditions might arise from using the function incorrectly.

If not, you can always read the source code.

jman31


PaulS

It is in the Arduino's hardware/libraries folder, under the name of the library. There may be more than one .cpp file.

jman31

Wow, boy am I thick. I just opened it up in notepad and there it was. That will make life a lot easier!  Thanks once again PaulS!

Regards,
Jeremy

Go Up