modelXiaoRgbLed
One on-board RGB LED package with three active-low RP2040 channels
Information
The XIAO RP2040 has one integrated RGB LED package. Its red, green and blue dies are connected to GPIO17, GPIO16 and GPIO25 respectively and are active low. Each electrical channel has its own series resistor; the icon combines their measured currents into one animated RGB package.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Resistance | RSeries | 330 | Series resistance of each LED channel |
| Modelica.Units.SI.Current | IMax | 0.005 | Current at full icon brightness for each channel |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | vcc | Common anode supply | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | redPin | Active-low red channel, GPIO17 | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | greenPin | Active-low green channel, GPIO16 | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | bluePin | Active-low blue channel, GPIO25 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Basic.Resistor | redResistor | ||
| Modelica.Electrical.Analog.Basic.Resistor | greenResistor | ||
| Modelica.Electrical.Analog.Basic.Resistor | blueResistor | ||
| MicroPythonMCU.Peripherals.LED | red | ||
| MicroPythonMCU.Peripherals.LED | green | ||
| MicroPythonMCU.Peripherals.LED | blue |