led module#

LED and PhotoDiode symbols for JITX Standard Library

This module provides LED and PhotoDiode symbol definitions with arrow indicators.

class LEDConfig(arrow_config=None, label_config=None, pitch=2.0, body_width=0.6, body_height=None, line_width=0.05, filled=False, arrow_margin=0.3, arrow_pitch=0.4, arrow_angle=30.0)[source]#

Bases: DiodeConfig, ArrowConfigurable

Configuration for LED symbols

Extends DiodeConfig with arrow parameters for light emission indicators.

Parameters:
arrow_margin: float = 0.3#

Distance from diode body to arrows

arrow_pitch: float = 0.4#

Vertical spacing between arrows

arrow_angle: float = 30.0#

Angle of outgoing light arrows in degrees

class LEDSymbol(config=None, **kwargs)[source]#

Bases: DiodeSymbol[LEDConfig]

LED symbol with arrows indicating light emission.

The LED symbol consists of a standard diode with two arrows pointing outward to indicate light emission.

Pins: ‘a’ (anode), ‘c’ (cathode)

Parameters:

config (T)

arrows: tuple[Arrow, Arrow]#
property arrow_margin: float#

See arrow_margin.

property arrow_pitch: float#

See arrow_pitch.

property arrow_angle: float#

See arrow_angle.

class PhotoDiodeConfig(arrow_config=None, label_config=None, pitch=2.0, body_width=0.6, body_height=None, line_width=0.05, filled=False, arrow_margin=0.3, arrow_pitch=0.4, arrow_angle=150.0)[source]#

Bases: DiodeConfig, ArrowConfigurable

Configuration for PhotoDiode symbols

Extends DiodeConfig with arrow parameters for light absorption indicators.

Parameters:
arrow_margin: float = 0.3#

Distance from diode body to arrows

arrow_pitch: float = 0.4#

Vertical spacing between arrows

arrow_angle: float = 150.0#

Angle of incoming light arrows in degrees (pointing toward diode)

class PhotoDiodeSymbol(config=None, **kwargs)[source]#

Bases: DiodeSymbol[PhotoDiodeConfig]

PhotoDiode symbol with arrows indicating light absorption.

The PhotoDiode symbol consists of a standard diode with two arrows pointing inward to indicate light absorption.

Pins: ‘a’ (anode), ‘c’ (cathode)

Parameters:

config (T)

arrows: tuple[Arrow, Arrow]#
property arrow_margin: float#

See arrow_margin.

property arrow_pitch: float#

See arrow_pitch.

property arrow_angle: float#

See arrow_angle.