OfficialBasicLighting an LED
A 5 V battery and a 150 Ω resistor drive about 20 mA through a red LED (forward voltage 1.8 V) to light it. An LED lights only when current flows forward. Select the LED and click "Reverse polarity": it is reversed and goes dark. A smaller resistor increases the current and makes it brighter (a real LED breaks if too much current flows). Select the LED to change its color or the current at full brightness.