Resistors in Light Emitting Diode (LED) Circuits
Such a resistor is often called a ballast resistor. The ballast resistor is used to limit the current through the LED and to prevent that it burns. If the voltage source is equal to the voltage drop of the LED, no resistor is required.