electricpy.led_resistor¶
-
electricpy.led_resistor(Vsrc, Vfwd=
2
, Ifwd=20
)[source]¶ LED Resistor Calculator.
This function will evaluate the necessary resistance value for a simple LED circuit with a voltage source, resistor, and LED.
\[R_\text{LED} = \frac{V_\text{SRC} - V_\text{FWD}}{I_\text{FWD}}\]