The first ever LED was made in 1927.
Or perhaps 20 years earlier:wiki:Light-emitting diode[edit]Recreation of the 1907 experiment by H. J. Round on the observation of electroluminescence from a point contact with a carborundum (
silicon carbide) crystal.
In some later experiments with cat's whisker detectors using a variety of substances, he passed current through them and noticed that some gave off light – the first known report of the effect of the light-emitting diode (LED). Round published his result in 1907 in Electrical World