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,ArrowConfigurableConfiguration for LED symbols
Extends DiodeConfig with arrow parameters for light emission indicators.
- Parameters:
arrow_config (ArrowConfig | None)
label_config (LabelConfig | None)
pitch (float)
body_width (float)
body_height (float | None)
line_width (float)
filled (bool)
arrow_margin (float)
arrow_pitch (float)
arrow_angle (float)
- 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)
- 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,ArrowConfigurableConfiguration for PhotoDiode symbols
Extends DiodeConfig with arrow parameters for light absorption indicators.
- Parameters:
arrow_config (ArrowConfig | None)
label_config (LabelConfig | None)
pitch (float)
body_width (float)
body_height (float | None)
line_width (float)
filled (bool)
arrow_margin (float)
arrow_pitch (float)
arrow_angle (float)
- 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)
- property arrow_margin: float#
See
arrow_margin.
- property arrow_pitch: float#
See
arrow_pitch.
- property arrow_angle: float#
See
arrow_angle.