j5.components.component module¶
Base classes for components.
-
class
j5.components.component.
Component
[source]¶ Bases:
object
A component is the smallest logical part of some hardware.
-
identifier
¶ An integer to identify the component on a board.
-
-
class
j5.components.component.
DerivedComponent
[source]¶ Bases:
j5.components.component.Component
A derived component is a component that can take another component as a parameter.
For example, a device may be attached to various pins on the board, and this could vary depending on what the user wants. We solve this by passing the pins to the derived component.
>>> u = Ultrasound(pin_0, pin_1)
-
identifier
¶ An integer to identify the component on a board.
-