4 ms·
>> The hard part about fading leds on an embedded system is usually the timing rather than the math. I do a lot of power electronics work where we have an inte
by phkahler 5y ago
>> The hard part about fading leds on an embedded system is usually the timing rather than the math.
I do a lot of power electronics work where we have an interrupt every PWM cycle (in the kHz range). In that case the PWMs are already used for critical things and the timing is already solid, so this really is a drop-in blinker/fader.
Of course lots of applications have a spare PWM they can utilize for changing brightness of an LED, but the setup is still probably more than the code here ;-)