wokwi-rgb-led Reference
5mm Red, Green and Blue (RGB) LED.
Pin names
| Name | Description |
|---|---|
| R | Red LED |
| G | Green LED |
| B | Blue LED |
| COM | Common pin* |
* By default, the common pin is the anode (positive). You can change it by setting the "common" attribute to "cathode".
Attributes
| Name | Description | Default value |
|---|---|---|
| common | The common pin type: "cathode" or "anode" | "anode" |