Hardware Reference
In-Depth Information
CHAPTER
26
Creating Your Own Library
This chapter discusses how to create your own library. You can i nd the code
downloads for this chapter at http://www.wiley.com/go/arduinosketches on
the Download Code tab. The code is in the Chapter 26 download and individu-
ally named according to the i lenames noted throughout this chapter.
The Arduino project has had an immense success since its creation, and there
are several reasons. The cost is, of course, an important criterion to any proj-
ect. Continuous R & D has also helped, but one of the primary reasons today
is simple: the openness of the project. The Arduino community is extremely
active. Just look at the Arduino forums: Google+ groups or Arduino events
organized in cities throughout the world. This is the community that drives
the ongoing evolution of the platform, either by getting the tools to work with
new electronic components and breakout boards, or i nding and creating their
own when nothing exists. In Chapter 25 you created your own shield, now you
will create your own library.
Libraries
You can use libraries for several applications, but two main uses exist. One is
to have specii c routines such as temperature conversion, data processing, or
hardware I/O. The second use is to allow the use of specii c hardware, hiding
 
Search WWH ::




Custom Search