Suggestion on Tutorial: Writing a Library for Arduino

I've just been through the tutorial and exercise of creating a library and I can speak from personal experience that it would be really helpful to highlight the need to #include any files #included in the library in the sketch as well.

The information is in the forums but it took me a lot longer to find it than I am willing to admit!

Thanks

Mark

This will hopefully be a thing of the past soon.

Now the IDE has a library manager, a next step is to resolve the dependencies automatically. I recall reading about a problem with infinite recursion and such, but its still on the work bench as far as I know.

mdresser:
I’ve just been through the tutorial and exercise of creating a library

I hope it advised you to produce comprehensive documentation and, especially, to make it very clear what Arduino resources are used so that users of the library can easily see whether it will be compatible with other libraries.

I hope it advised you to write the library in such a way as to avoid conflict with other libraries that may commonly be used with it.

…R