

A library should have an example of most, if not all, of the methods in the class. If the user has no other documentation they should be able to use almost all the features of a device by going through all the examples.

Read the Arduino style guide to give you a starting point for your examples. Read and follow the Arduino Style Guide for writing examples

Be sure you are being as kind to the user as possible with your library. The Arduino API Style Guide is a great starting point to make users feel comfortable with your library as well as XYZ library. Read and follow the Arduino API Style Guide for writing libraries Please consider them the next time you write a library. This is a compiled list of lessons we've learned along the way that can make a good Arduino library great. SparkFun has written a large number of libraries for Arduino over many years.
