Light-emitting diode into a lower energy level and releases energy in the form of a photon. The wavelength of the light emitted, and thus its color, depends on the band gap energy of the materials forming the "p-n junction". In silicon or germanium diodes, the electrons and holes usually recombine by a "non-radiative transition", which produces no optical emission, because these are indirect band gap materials. The materials used for the LED have a direct band gap with energies corresponding to near-infrared, visible, or near-ultraviolet light. LED development began with infrared and red devices made with gallium arsenide. Advances in materials science
Light-emitting diode have enabled making devices with ever-shorter wavelengths, emitting light in a variety of colors. LEDs are usually built on an n-type substrate, with an electrode attached to the p-type layer deposited on its surface. P-type substrates, while less common, occur as well. Many commercial LEDs, especially GaN/InGaN, also use sapphire substrate. Bare uncoated semiconductors such as silicon exhibit a very high refractive index relative to open air, which prevents passage of photons arriving at sharp angles relative to the air-contacting surface of the semiconductor due to total internal reflection. This property affects both the light-emission efficiency of LEDs as well