LED module
An LED with its series resistor on a small board, wired straight to a GPIO
Overview
Section titled “Overview”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.
| Pin | Description |
|---|---|
+ | Through the module’s resistor to the LED’s anode |
- | The LED’s cathode |
Configuration
Section titled “Configuration”| Option | Type | Default | Description |
|---|---|---|---|
color | Color 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) |
ohms | Number | 330 | The module’s series resistor |
| Field | Range | Description |
|---|---|---|
intensity | 0–100 | Brightness. 100 = full brightness from a 3.3 V pin |
current_ma | mA | The LED’s mean current |