Chapter 4

Using Libraries

Abstract

This chapter describes the use of PIC32 software libraries in C. A C software library consists of a header file that declares data types, constants, and function prototypes for use by other programs, as well as object code or C source code that implements the functions. The reader learns about sample code libraries that allow writing to an LCD screen and communicating with a host computer; libraries provided by Microchip; and how to write his or her own C libraries.

Keywords

C library

UART

LCD screen

Harmony

Make tools

Makefile

You have used libraries all your life—well, at least as long as you have programmed in C. Want to display text on the screen? printf. What about determining the length of a string? ...

Get Embedded Computing and Mechatronics with the PIC32 Microcontroller 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.