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 ...