In this example we see how to blink several LEDs using a single timer with an interrupt function. The example shows a timeout function builded on millisec variable that is something similar to Arduino millis() function.
The argument is covered into Yet another way th have a LED blinking tutorial.
You need Microchip MPLAB-X IDE V4.0 installed as well as MPLAB XC8 compiler. The example is configured under PIC18LF24K40 microcontroller but can be adapted to any PIC by using MPLAB Code Configurator
For Linux-64 machines some libraries are needed; Microchip has a tutorial for this: mplabx-lin64
To install the project on your machine the best way is to clone the repository:
cd MPLABXProjects git clone https://github.com/PaoloCarlo/example_led_irq.git
Now you can open the project into MPLAB-X IDE
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details