© Hubert Henry Ward 2020
H. H. WardC Programming for the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-5525-4_7

7. Creating a Header File

Hubert Henry Ward1  
(1)
Lancashire, UK
 

This chapter covers how to create a header file. It then uses a header file in a program to control the LCD in 4-bit mode.

Header Files

These can be used to reduce the size of a program listing and split a program up into different sections for different members of a team to work on. These header files will all be brought together using the #include statement in the main program.

One of the most useful applications of header files is when a lot of programs are going to use a peripheral device in exactly the same way in all the programs. One of the main peripheral devices ...

Get C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming 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.