Just out of curiosity, do you plan to extend PWM control to compensate the LED brightness non-linearity?
Hi CW2,
Thanks for the suggestion - I think that would be a good follow-on sample. For the time being, I just wanted to create something equivalent to the Arduino "Fading" sample, but showcase some of the Netduino / NETMF features (like timer callbacks, and a "real" Sleep() function).
The Arduino sample also just folows a linear PWM ramp, which as you mention, doesn't correspond to a linear brightness at the LED
![:)](http://forums.netduino.com/public/style_emoticons/default/smile.png)
A more advanced exercise might use a lookup table to compensate for the non-linear response of the LED.
BTW, does anybody happen to know what the response curve of a typical LED looks like? I'm curious if it's a logarithmic function (like audio), or if it's something completely different.