5,710
edits
Changes
→LED Dimming
=== LED Dimming ===
*File->Sketchbook->Examples->Analog->Fading
The crux of this sketch is the <code> analogWrite(ledpin, value); // sets the value (range from 0 to 255) </code>function.
PWM (pulse width modulation)
*lights, fading