A light-emitting diode array is driven by a digital control. The digital control modulates the pulse width of pulses applied to the light-emitting diode. The intensity of the output is controlled by controlling the width of pulses applied to the light-emitting diode. Since light-emitting diodes have very low inertial energy, this system can be rapidly turned on and turned off. The output is integrated to produce a uniform output.