foshan_nationstar_optoelectronics_FM_B2020RGBA_HG module#

class RGBLed[source]#

Bases: Port

r = Port()#
g = Port()#
b = Port()#
a = Port()#
class RectangleSMDPad[source]#

Bases: Pad

shape: Shape | PadShape = Polygon(elements=((0.35, 0.4), (-0.35, 0.4), (-0.35, -0.4), (0.35, -0.4)), holes=())#

The geometric shape of the pad or a PadShape to specify the regular shape and the shape when non-functional pads are removed. Can be overridden on a per-layer basis by shapes.

soldermask = Soldermask(shape=Polygon(elements=((0.401, 0.451), (-0.401, 0.451), (-0.401, -0.451), (0.401, -0.451)), holes=()), side=<Side.Top: 0>)#
paste = Paste(shape=Polygon(elements=((0.401, 0.451), (-0.401, 0.451), (-0.401, -0.451), (0.401, -0.451)), holes=()), side=<Side.Top: 0>)#
class LEDProperty(forward_voltage, mcd_current)[source]#

Bases: Property

Property class for LED components with forward voltage and current specifications.

Parameters:
forward_voltage: float#
mcd_current: tuple[tuple[float, float], ...]#
class FM_B2020RGBA_HG[source]#

Bases: Component

FM-B2020RGBA-HG RGB LED Component

RGB SMD,2.1x2.1mm Light Emitting Diodes (LED) ROHS Manufacturer: Foshan NationStar Optoelectronics

manufacturer: str | None = 'Foshan NationStar Optoelectronics'#

Manufacturer for this component.

mpn: str | None = 'FM-B2020RGBA-HG'#

Manufacturer part number for this component.

datasheet = 'https://datasheet.lcsc.com/lcsc/1810231210_Foshan-NationStar-Optoelectronics-FM-B2020RGBA-HG_C108793.pdf'#
reference_designator_prefix: str | None = 'D'#

Reference designator prefix for this component. This will be used to generate a unique reference designator for each component of the same type.

Note

This field is a required data point for matching components between builds. If this value changes (including changing from unset to set), it will be treated as a new component, even if nothing else changes.

led = RGBLed()#
landpattern = landpattern()#
RGBDiodeSymbol = RGBDiodeSymbol()#
padmapping = PadMapping({RGBLed().a: landpattern().p[3], RGBLed().r: landpattern().p[1], RGBLed().b: landpattern().p[2], RGBLed().g: landpattern().p[4]})#
symbolmapping = SymbolMapping({RGBLed().a: RGBDiodeSymbol().a, RGBLed().r: RGBDiodeSymbol().r, RGBLed().b: RGBDiodeSymbol().b, RGBLed().g: RGBDiodeSymbol().g})#
Device#

alias of FM_B2020RGBA_HG