Find the correct series resistor value for any LED colour and supply voltage
R = (Vs − N × Vf) / If
Power = If² × R (choose resistor rated ≥ 2× this value)
Always round up to the next standard E12 value to limit current safely. For multiple series LEDs multiply Vf by count N.