I need to make an LED very slowly get brighter and then dimmer and repeat. I do not need to make the LED "blink" on and off. I need to make the LED start at completely off and then slowly and gradually get brighter. Once it reaches full brightness, I need to make it slowly and gradually get dimmer until it's all the way off.

I've used PWM and HPWM. These go too fast. I need it to go slower. I've asked this question before, and people have suggested I need to use the CCP module and/or interrupts, but I'm fairly new to this, and I don't know what to do with the CCP module. Can someone please give me some example code of how to make an LED slowly and gradually get brighter and dimmer?