Hi I need to fade an LED using 256 steps. My LED is connected via a 220R resister to the PIC.
When I give 2V, 20mA to the LED its lighting up very bright.
My problem is what do I have to write to duty cycle register?
Do I need to calculate the duty cycle register for 2V or for 5V?
When I give 2V, 20mA to the LED its lighting up very bright.
My problem is what do I have to write to duty cycle register?
Do I need to calculate the duty cycle register for 2V or for 5V?