photo module#
Photo resistor symbols for JITX Standard Library
This module provides photoresistor symbol definitions with light arrows.
- class PhotoResistorConfig(arrow_config=None, label_config=None, pitch=4.0, porch_width=0.5, amplitude=0.5, periods=3.0, line_width=0.15, arrow_margin=0.4, arrow_pitch=1.0, arrow_angle=45.0)[source]#
Bases:
ResistorConfig,ArrowConfigurableConfiguration for photoresistor symbols
Extends ResistorConfig with photo-specific arrow parameters.
- Parameters:
arrow_config (ArrowConfig | None)
label_config (LabelConfig | None)
pitch (float)
porch_width (float)
amplitude (float)
periods (float)
line_width (float)
arrow_margin (float)
arrow_pitch (float)
arrow_angle (float)
- arrow_margin: float = 0.4#
Distance from resistor body to arrows
- arrow_pitch: float = 1.0#
Vertical spacing between arrows
- arrow_angle: float = 45.0#
Angle of incoming light arrows in degrees
- class PhotoResistorSymbol(config=None, **kwargs)[source]#
Bases:
ResistorSymbolPhotoresistor symbol with graphics, light arrows, and pins.
- Parameters:
config (T | None)
- 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.