j5.components.led module¶
Classes for the LED support.
-
class
j5.components.led.
LED
(identifier: int, backend: j5.components.led.LEDInterface)[source]¶ Bases:
j5.components.component.Component
A standard Light Emitting Diode.
-
identifier
¶ An integer to identify the component on a board.
-
static
interface_class
() → Type[j5.components.led.LEDInterface][source]¶ Get the interface class that is required to use this component.
-
state
¶ Get the current state of the LED.
-
-
class
j5.components.led.
LEDInterface
[source]¶ Bases:
j5.components.component.Interface
An interface containing the methods required to control an LED.