Calculate resistor needed for an LED (source code)

= Calculate resistor needed for an LED

https://electronics.stackexchange.com/questions/492867/calculating-the-resistor-needed-for-a-simple-led-and-battery-circuit