Why is the pulse width so large? LEDs can toggle millions of times per second, not merely hundreds.
It is possible, by the way, to dim an LED without PWM the old-fashioned way: by varying the voltage of the power supplied to it (“DC dimming”). You can see this in devices that have an indicator LED that stays on for a few moments before fading out. What’s happening there is a capacitor in the device is (briefly) powering the LED. As its charge depletes, the voltage drops, and the LED dims. However, controlling LED brightness this way is a great deal less accurate than PWM, creating color distortion at low brightness. See related Android Police article.
Why is the pulse width so large? LEDs can toggle millions of times per second, not merely hundreds.
It is possible, by the way, to dim an LED without PWM the old-fashioned way: by varying the voltage of the power supplied to it (“DC dimming”). You can see this in devices that have an indicator LED that stays on for a few moments before fading out. What’s happening there is a capacitor in the device is (briefly) powering the LED. As its charge depletes, the voltage drops, and the LED dims. However, controlling LED brightness this way is a great deal less accurate than PWM, creating color distortion at low brightness. See related Android Police article.