Calculate the resistor value and power consumption needed to drive an LED.
3.0–48.0 V
1.0–4.0 V (Red: 2.0 V / Green: 2.2 V / Blue: 3.2 V / White: 3.3 V / Ultraviolet: 3.4 V)
0.1–100 mA (typical LED: 20 mA)