The program
on the right shows how this is done. Note that
basically we just added more 1's to the port setting
statement (as well as changed from PORTC to PORTB).
Nothing real earth shattering hear but what
happened to the delay functions we just introduced?
What we'd like to look at now is reusing the delay
functions by putting them in a separate file so we can
share the functions with other programs.
The second line in the program is another #include
statement but it's different from the first one. The
first one has the include file name in brackets
<> which tells the compiler to find it in one of
it's standard search directories. The 2nd
line has the file name in double quotes which tells
the compiler that it should find it stored with the
project.