You need to know 3 things - the rated current for the LED, I, the forward voltage, Vf, and your
supply voltage, Vs
R = (Vs - Vf) / I
You need to know 3 things - the rated current for the LED, I, the forward voltage, Vf, and your
supply voltage, Vs
R = (Vs - Vf) / I