2.2 The _delay() Function

Because the speed of execution will, in most cases, cause the LEDs to flash faster than the eye can see, execution needs to be slowed. _delay() is a built-in function of the compiler.

For more details on the delay built-in, see the “MPLAB XC8 C Compiler User’s Guide for PIC MCU” (DS50002737).