What PWM Actually Does
Fast on/off pulses that act like a dimmer.
A Pin That Only Knows On or Off
A digital pin can only output full voltage or none at all. So how do you get a dim LED instead of just bright or dark? 💡
The Trick: Switch Very Fast
The answer is PWM: turn the pin on and off so quickly that your eye blends the flickers into one steady, in-between brightness.
All lessons in this course
- What PWM Actually Does
- analogWrite 0–255
- Fade an LED Up and Down
- Knob Controls LED Brightness