Writing Libraries

Sooner or later you will create something really good that you think other people could make use of. This is the time to wrap up the code in a library and release it to the world. This chapter shows you how.

The Arduino’s success is in no small part due to its community who release libraries to make difficult things easy. This is further amplified by the ease with which libraries can be added and managed from the Arduino IDE.

When to Make a Library

Creating an Arduino library is not an activity restricted to Arduino developers; any Arduino user can create a library. If it’s useful, then much praise will flow in the developer’s direction. No one sells libraries—that would be counter to the values of the Arduino community. ...

Get Programming Arduino Next Steps: Going Further with Sketches, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.