10

Writing Your Own AVR Libraries

Cast your mind back to Project 15 in Chapter 3, which required us to convert the voltage measured by the TMP36 temperature sensor to degrees Celsius. To complete those calculations, we called the math library and used the functions within it to perform operations on floating-point numbers. Using this library meant we didn’t have to create our own mathematical functions or include their code in the project, saving time and effort.

In this chapter, you’ll learn to create your own libraries, allowing you to reuse tested functions in multiple projects to increase your efficiency. You’ll build a simple library ...

Get AVR Workshop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.