Skip to content

LED module

An LED with its series resistor on a small board, wired straight to a GPIO

LED component

The LED module (type Led) is an LED and its series resistor on a small board, like the LED modules sold for breadboards. Wire + to a GPIO and - to GND: no resistor is needed. It also works the other way round, + to 3.3 V and - on a GPIO that sinks the current.

The simulator solves it electrically: the LED’s current comes from the pin’s driver, the module’s resistor and the LED’s forward voltage, which follows its colour. Its brightness is that current against what a 3.3 V logic pin gives the module, so a pin with a weak drive shows dimmer, and PWM shows its duty cycle.

For a bare LED that needs its own resistor (anode A, cathode K), use LED (LedAnalog) from the passive parts.

PinDescription
+Through the module’s resistor to the LED’s anode
-The LED’s cathode
OptionTypeDefaultDescription
colorColor picker#FF0000 (red)Any CSS color; sets the forward voltage (red about 1.9 V, yellow 2.0 V, green 2.1 V, blue or white 2.8 V)
ohmsNumber330The module’s series resistor
FieldRangeDescription
intensity0–100Brightness. 100 = full brightness from a 3.3 V pin
current_mamAThe LED’s mean current
Docs
Open dashboard ↗