j5.components.battery_sensor module¶
Classes for Battery Sensing Components.
-
class
j5.components.battery_sensor.
BatterySensor
(identifier: int, backend: j5.components.battery_sensor.BatterySensorInterface)[source]¶ Bases:
j5.components.component.Component
A sensor capable of monitoring a battery.
-
current
¶ Get the current of the battery sensor.
-
identifier
¶ An integer to identify the component on a board.
-
static
interface_class
() → Type[j5.components.battery_sensor.BatterySensorInterface][source]¶ Get the interface class that is required to use this component.
-
voltage
¶ Get the voltage of the battery sensor.
-
-
class
j5.components.battery_sensor.
BatterySensorInterface
[source]¶ Bases:
j5.components.component.Interface
An interface containing the methods required to read data from a BatterySensor.