An explanation of how an LED works via electroluminescence, with the method for calculating the current-limiting resistor it needs.